If ImageMagick won't work, I'd look at Gimp command line.
The following commands created a 2-layer PSD file for me in the interactive console:
> (gimp-image-new 200 200 0)
(1)
> (gimp-layer-new 1 200 200 0 "layer-1" 100 0)
(2)
> (gimp-layer-new 1 200 200 0 "layer-2" 100 0)
(3)
> (file-psd-save 0 1 0 "test.psd" "test.psd" 0 0)
> (gimp-image-add-layer 1 2 -1)
> (gimp-image-add-layer 1 3 -1)
> (file-psd-save 0 1 1 "test.psd" "test.psd" 0 0)
That would need to be converted into a script-fu script (.scm file) and could be executed from the command-line with something like this:
gimp -i -b '(your-script-name "test.psd" 200 200)' -b '(gimp-quit 0)'
Вот несколько полезных ссылок на вас:
Вторая ссылка предназначена для использования с PHP , но она выполняет ImageMagick, используйте только команды , не весь синтаксис PHP , только строка кода exec .
Надеюсь, я вам помогаю!
Вы можете использовать -adjoin для объединения последовательности изображений.
convert -size 100x100 \
-alpha set plasma:fractal \
-alpha set plasma:fractal \
-adjoin \
out.psd
Использование: