Page 1 of 1

PSD slides to left when converting to PDF with cmyk

Posted: 2016-01-08T07:44:25-07:00
by neerajverma14
ImageMagick Version: 6.9.1-2 Q16 x64 2015-04-14
OS: Windows 7 64 bit

Hi all,
This is my first post so please ignore my mistakes.

I need to convert a PSD file to PDF, the PSD is having colorspace cmyk and target pdf should be same. I also need to apply watermark to converted pdf. the code I am using

Code: Select all

"d:\Temp\src\test.psd[0]" -density 300 -profile "C:\ImageMagick\sRGB.icc" -thumbnail 800X800> -gravity Center "d:\Temp\targetWatermarkFile.png" -composite -profile "C:\icc-profiles\adobe\cmyk\USWebCoatedSWOP.icc" -depth 8 "d:\Temp\tgt\test.Pdf"
Size of the PSD is 3000X3000. Size of watermark, which is a png is 600X399.

The problem is that PDF is created but the image slides to Left.
Note:
1. If I do not use watermark then it works properly
2. If I convert it to sRGB Profile, It works Properly.
3. If I use resize instead of thumbnail, It works,

I cannot use resize for some reasons. Can anyone help me figuring out "If it works with resize why its not working with thumbnail".

Re: PSD slides to left when converting to PDF with cmyk

Posted: 2016-01-08T11:25:38-07:00
by fmw42
Your image(s) may have built in virtual canvas offsets. Try putting +repage after reading each input. Otherwise, post your images to some place such as dropbox.com and put the URLs here so we can test them.

Also -thumbnail has a built-in -strip and that may be your issue. Some meta data in the PSD file is being removed. -thumbnail is similar to -strip -resize. So perhaps use -resize and then -strip before the output. With your -thumbnail, you are stripping any profiles other than color. That means some of the PSD profiles are being removed, which probably contain the meta data that you need.

see http://www.imagemagick.org/script/comma ... .php#strip and http://www.imagemagick.org/script/comma ... #thumbnail