![]() ![]() ![]() Usage sample: gimp-console-2.8. You just need put this script into file with name "pngtopsd.scm" inside your gimp "script" directory ( "c:\Program Files\GIMP 2\share\gimp\2.0\scripts\" for Windows) and you can create layered PSD from list of PNG pictures with transformation (translation or rotation) of each layer. (file-psd-save 0 image drawable psd-path psd-path 1 0) (gimp-item-transform-2d drawable 0 0 1 1 (cadr png) (caddr png) (cadddr png)) (gimp-image-resize image width height 0 0) ![]() (drawable (car (gimp-image-get-active-layer image)))) (image (car (gimp-file-load 1 (car png) (car png)))) (gimp-item-transform-2d new-layer 0 0 1 1 (cadr png) (caddr png) (cadddr png)) (gimp-image-insert-layer image new-layer 0 -1) If you make a duplicate copy and hide the dupe layer, it won’t show up in Photoshop :: How To Convert Document To PDF May 10, 2013. So you can’t re-combine the shape ever again(the change is permanent). (new-layer (car (gimp-file-load-layer 0 image (car png))))) Basically once you convert layer effects into separate layers, they behave like their own bitmap images. Here is my script: (define (pngtopsd width height png-paths psd-path) I agree with Jon Galloway, the Gimp console is a better choice. If the image names contain special chars, you can protect them with " (eg "c:\my im1.png") without any issue. On Unix/OSX, you have to protect the parenthesis by a backslash, and the line continuation characters change also to \: The label/name of the layer is optional (remove -label if none.) The in im1.xxx retrieves the first image in the image file, in case there exist a thumbnail in the Exif. That is, for each layer, you have something like Given the list of images (im1.xxx, im2.xxx etc, im1 being the bottom layer,) a list of labels for the layers ("label1", "label2".) : I have not encountered any issue in opening the generated PSD in Photoshop, however every layer appears as a background layer, and you have to convert it into a true layer first in order to edit the layer ordering. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |