Some PDF thumbnails are all black!

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
wiankim
Posts: 1
Joined: 2011-10-03T22:36:49-07:00
Authentication code: 8675308

Some PDF thumbnails are all black!

Post by wiankim »

Hi All,

We have used

$cmd = 'export PATH="/usr/local/bin/"; convert -density 400 -colorspace RGB '.$pdf_path.''.$pdf_name.' -resize 125 -quality 100 '.$thumb_path.''.$file_name.'.jpg';

$all_thumb = shell_exec($cmd);

But thumbnails are all black in few server, not for all the servers. Will you suggest me why that is not working properly in few server?
We have reinstalled image magic and ghostscript. still creating black thumbnails.

Actually text section of pdf become black in jpeg image.

Thanks,
Wiankim
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Some PDF thumbnails are all black!

Post by anthony »

Look at the version numbers of both IM and ghostscript on the servers that work, and those that do not.

Best idea is to ensure all servers are up to date in BOTH bits of software.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply