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
Higher density takes more time to generate image
-
- 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
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.
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
-
- 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
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