Page 1 of 1

Preivew is not generated properly in linux environment

Posted: 2019-05-09T22:02:10-07:00
by ksampan
Hi Team,

I tried to generate preview for specific pdf using imagemagick in linux environment, seems that preview is not generated properly. But in the windows environment it properly generated.

Imagemagick version on windows : ImageMagick 7.0.8-3 Q16 x64(Working properly)
Imagemagick version on linux : 7.0.8-3 Q16 x86_64(issue is observed)

Command that was used on windows : magick.exe pdf:C:\Users\..\Desktop\a.pdf[0] -intent relative -quality 95 -colorspace sRGB -strip C:\Users\..\Desktop\a.JPG
Command that was used on linux : convert pdf:/home/../a.pdf[0] -intent relative -quality 95 -colorspace sRGB -strip /home/../a.JPG

File can be found at https://drive.google.com/file/d/1zvbe4D ... sp=sharing

Re: Preivew is not generated properly in linux environment

Posted: 2019-05-09T23:10:54-07:00
by fmw42
Using IM 7.0.8.44 Q16 MacOSX, this works for me. Note that with PDF files, you should tell it to convert to sRGB while reading the input. If you strip after setting the intent, I believe it will be lost.

Code: Select all

magick -colorspace sRGB a.pdf -strip -intent relative -quality 95 a.jpg
Also check your versions of Ghostscript. GS 9.27 and 9.26 are known to have some bugs. Use 9.23, 9.24, or 9.25.