Skip to content

Instantly share code, notes, and snippets.

@Sanyambansal76
Created January 18, 2017 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sanyambansal76/0495eab7d376372d1ae47bdad7eff3e3 to your computer and use it in GitHub Desktop.
Save Sanyambansal76/0495eab7d376372d1ae47bdad7eff3e3 to your computer and use it in GitHub Desktop.
Create High Quality Image Using Wand
#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