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
Preivew is not generated properly in linux environment
- 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
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.
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.
Code: Select all
magick -colorspace sRGB a.pdf -strip -intent relative -quality 95 a.jpg