Page 1 of 1

Higher density takes more time to generate image

Posted: 2016-09-12T23:23:15-07:00
by ravinder
My IM version is 6.6.9 and convert command is as follows to create png images from pdfs. For sharp image i set -density value 1200. But density value 1200 is taking too much time to generate image. Also please Note that i am unable to get the good quality image if i set density less than 1200.
What other option are available to increase the quality of image with IM version is 6.6.9 . Please suggest.

convert -verbose -resample 150 -density 1200 -trim +repage -sharpen 0x1.5 -quality 100 -append -transparent "#FFFFFF" "'.$pdf_file_name.'" "'.$gif_file_name.'"'

Thanks,
ravinder

Re: Higher density takes more time to generate image

Posted: 2016-09-12T23:55:27-07:00
by snibgo
IM v6.6.9 is very old, though I doubt that makes much difference to speed.

IM delegates reading PDF files to Ghostscript. The current GS version is 9.19. Is your GS older? An upgrade may increase speed.

I don't know when "-resample" is done, in your command.

Posted: 2016-09-13T00:03:12-07:00
by ravinder
GS version is also old. would be any possibility to reduce the creation time with old version or up gradation is only solution.

Re: Higher density takes more time to generate image

Posted: 2016-09-13T00:28:37-07:00
by snibgo
I don't have a version that old, so can't experiment. You sample at 1200 but resize to 150, which seems a big jump, so I'm surprised you need 1200. What is in your PDFs? Vector (like ordinary text) or raster images or what? What quality looks bad with lower "-density"?