-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image compression? #278
Comments
You can use Example... from wand.image import Image
with Image(filename="input.jpg") as image:
image.compression_quality = 90
image.resolution = (300, 300)
image.save(filename="output.jpg") |
The with Image(filename='input.png') as img:
img.compression_quality = 95
img.save(filename=self.tmp_filename('output.png')) The result is same does not matter which Update: solution is to use: |
Setting |
Is there a way to compress the image size but not resolution?
Similar to http://stackoverflow.com/questions/21920028/how-does-python-pil-and-pillow-compress-pictures
The text was updated successfully, but these errors were encountered: