Image processing 将图像转换为.xcf格式

Image processing 将图像转换为.xcf格式,image-processing,gimp,xcf,Image Processing,Gimp,Xcf,是否可以将一个图像或一批图像转换为.xcf或.psd文件?使用ImageMagick的convert工具不起作用,但到目前为止,我尝试从命令行使用gimp进行转换的尝试都没有成功。现在可以找到答案。将以下代码放入脚本中 gimp -n -i -b - <<eof (let*="" (="" (file's="" (cadr="" (file-glob="" "*.png"="" 1)))="" (filename="" "")="" (image="" 0)="" (layer=""

是否可以将一个图像或一批图像转换为.xcf或.psd文件?使用ImageMagick的
convert
工具不起作用,但到目前为止,我尝试从命令行使用gimp进行转换的尝试都没有成功。

现在可以找到答案。将以下代码放入脚本中

gimp -n -i -b - <<eof (let*="" (="" (file's="" (cadr="" (file-glob="" "*.png"="" 1)))="" (filename="" "")="" (image="" 0)="" (layer="" )="" (while="" (pair?="" file's)="" (set!="" image="" (car="" (gimp-file-load="" run-noninteractive="" file's))))="" layer="" (gimp-image-merge-visible-layers="" clip-to-image)))="" filename="" (string-append="" (substring="" 0="" (-="" (string-length="" file's))="" 4))="" ".xcf"))="" (gimp-file-save="" filename)="" (gimp-image-delete="" image)="" file's="" (cdr="" (gimp-quit="" eof<="" pre="">
gimp-n-i-b-