Comments (1)
Here's one way, maintain aspect ratio with 8192x8192 max resolution:
pip3 install pillow
from PIL import Image
im = Image.open(filename)
im.thumbnail((8192, 8192))
im.save(filename)
https://pillow.readthedocs.io/en/latest/reference/Image.html#examples
from diffengine.
Related Issues (20)
- Photo changes HOT 1
- Can we use it for personal use only? HOT 3
- Info HOT 1
- pip 19 breaks install HOT 14
- Error message: WARNING - not tweeting without archive urls HOT 8
- SavePageNow 503 Service Unavailable HOT 1
- Link to Wayback Diff? HOT 3
- Unable to complete setup HOT 1
- 'EntryVersion' object has no attribute 'save_url' HOT 2
- Screenshot truncated
- Python code formatter integration HOT 4
- Change summary lang key default value to "the page" HOT 2
- Make `time.sleep` configurable and default to zero
- Remove Entry.blogged HOT 1
- Database migrations HOT 1
- Why tweet_status_id_str on EntryVersion and not Diff? HOT 1
- Avoid messages per entry from the handlers when they're not configured
- exceptions directory not copied during setup HOT 3
- update_with_media deprecated
- Interested in getting this project running. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diffengine.