Created
January 18, 2017 14:53
-
-
Save Sanyambansal76/0495eab7d376372d1ae47bdad7eff3e3 to your computer and use it in GitHub Desktop.
Create High Quality Image Using Wand
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install Wand and Imagemagic Lib on Your System | |
#Pass the resolution paramenter in the Image Init Method | |
from wand.image import Image | |
with Image(filename='file.pdf', resolution=200) as image: | |
image.compression_quality = 99 | |
image.save(filename='file.jpg') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment