1

我有很多 JPEG 文件,我想使用 ImageMagick 将它们作为图层添加到 PSD 文件中

我找到了几个相反的脚本,从 PSD 文件中提取图层。我不想要那个。

我只想拍摄几张 JPEG 图片并将它们作为图层添加到 PSD(photoshop)文件中,并将这些图层命名为 JPEG 文件名。我找到了一种使用 ImageMagick 创建合成图像的方法,但我看到的所有示例都创建了 PNG 或 GIF 文件。我需要创建一个 PSD 分层文件。

4

1 回答 1

1

A couple of notes first:

1/ The first layer in a psd file is all the layers merged and you would need to create that first.

2/ For some reason the first layer using the code below drops the first layer e.g image1.png so create a blank layer to use as the first layer.

3/ The layers in my test were renamed to L000001 etc.

The answer to the first part of your question is:

convert image1.png image2.png image3.png

But I do not know how to keep the image names as the layer names

于 2012-05-25T20:25:00.180 回答