Preivew is not generated properly in linux environment

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
ksampan
Posts: 16
Joined: 2018-01-10T21:51:21-07:00
Authentication code: 1152

Preivew is not generated properly in linux environment

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Preivew is not generated properly in linux environment

Post 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.
Post Reply