Higher density takes more time to generate image

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
ravinder
Posts: 14
Joined: 2015-11-05T23:49:44-07:00
Authentication code: 1151

Higher density takes more time to generate image

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Higher density takes more time to generate image

Post 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.
snibgo's IM pages: im.snibgo.com
ravinder
Posts: 14
Joined: 2015-11-05T23:49:44-07:00
Authentication code: 1151

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Higher density takes more time to generate image

Post 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"?
snibgo's IM pages: im.snibgo.com
Post Reply