Issues converting a PSD generated by IM to JPG
Posted: 2012-07-24T05:20:16-07:00
What I'm trying to accomplish: I want to use ImageMagick to add a layer on top of an image, with a color blend (an image, not 1 fixed color). ImageMagick only has colorburn but not color, so I created the color blend layer in photoshop and saved it. Then, with ImageMagick, I combine the jpg I want to use with the psd, using the following command:
convert 1.jpg 1.jpg color.psd[2] -background white -alpha set test.psd
The file opens/displays perfectly in Photoshop. However, if I want to convert it to JPG via ImageMagick, it messes up.
convert test.psd[0] test.jpg - output:

convert -flatten test.psd test.jpg - output:

If I open the psd created by ImageMagick in Photoshop, and save it, and try converting again with "convert test.psd[0] test.jpg" I get the correct output.

I don't want to have to open the file in photoshop however.
What could I be missing?
I assume I don't have to add 1.jpg twice in the psd creation command, but otherwise it messes up a little.
Thanks in advance for any pointers!
convert 1.jpg 1.jpg color.psd[2] -background white -alpha set test.psd
The file opens/displays perfectly in Photoshop. However, if I want to convert it to JPG via ImageMagick, it messes up.
convert test.psd[0] test.jpg - output:

convert -flatten test.psd test.jpg - output:

If I open the psd created by ImageMagick in Photoshop, and save it, and try converting again with "convert test.psd[0] test.jpg" I get the correct output.

I don't want to have to open the file in photoshop however.
What could I be missing?

I assume I don't have to add 1.jpg twice in the psd creation command, but otherwise it messes up a little.
Thanks in advance for any pointers!