I'm creating a RLE compressed psd with four layers. The convert command below is similar to what I want to achieve, in reality I'm converting four jpegs of varying types, but it's good enough for visualising the question.
The RLE compression takes about 10–11 seconds —is that to be expected, or is there any way to change the command to improve the speed?
I read (https://github.com/ImageMagick/ImageMagick/issues/84) that zip compression of layers in psd files is supported, however I can't get that to work. When opening the psd in Photoshop I get an error message "Could not complete your request because the file is not compatible with this version of Photoshop." Is Photoshop at all compatible with zip compression?
Any help is highly appreciated!
Convert command
Code: Select all
convert \
\( -size 3000x3600 -depth 8 canvas:gray99 -flatten \) \
\( -page +1100+1000 -size 800x1600 -label first -depth 8 canvas:blue -transparent white \) \
\( -page +1100+1000 -size 800x1600 -label second -depth 8 canvas:red -transparent white \) \
\( -page +1100+1000 -size 800x1600 -label third -depth 8 canvas:green -transparent white \) \
\( -page +1100+1000 -size 800x1600 -label fourth -depth 8 canvas:yellow -transparent white \) \
-density 72 -colorspace sRGB -profile ./colorprofiles/sRGB.icm -compress RLE out.psd
canvas:gray99=>gray99 CANVAS 3000x3600 3000x3600+0+0 8-bit Gray 0.140u 0:00.139
canvas:blue=>blue CANVAS 800x1600 800x1600+1100+1000 8-bit sRGB 0.010u 0:00.009
canvas:red=>red CANVAS 800x1600 800x1600+1100+1000 8-bit sRGB 0.010u 0:00.000
canvas:green=>green CANVAS 800x1600 800x1600+1100+1000 8-bit sRGB 0.000u 0:00.009
canvas:yellow=>yellow CANVAS 800x1600 800x1600+1100+1000 8-bit sRGB 0.000u 0:00.000
./colorprofiles/sRGB.icm ICM 1x1 1x1+1100+1000 8-bit sRGB 3144B 0.000u 0:00.000
canvas:gray99=>out.psd[0] CANVAS 3000x3600 0x0+1100+1000 8-bit sRGB 989562B 2.630u 0:10.039