Saturday, 15 August 2015

python - convert PDF into TIFF with 600dpi and jpg 96 dpi -



python - convert PDF into TIFF with 600dpi and jpg 96 dpi -

i want convert pdf tiff 600 dpi , jpg 96 dpi python script using imagemagick.

i done task using (imagemagick) command line want convert pdf tiff , jpg using imagemagick in python ,

can please help me that......

using pythonmagick:

import pythonmagick img = pythonmagick.image() img.density('600') # have set here if initial dpi > 72 img.read('test.pdf') # pdf rendered @ 600 dpi img.write('test.tif') img.density('96') # has lower first dpi value (it 600) # img.resize('100x100') # size in px, in case need img.write('test.jpg')

python linux imagemagick

No comments:

Post a Comment