saving layers

hello.. i have had gimp for awhile but this is my first time im REALLY using it for something with worth.

what im doing is building a interface for a phone i have designed each image/buttons for the interface and to make sure it all lined up i made each button a different layer. now there is 20 or so layers that makes up the complete interface.

what i need to do is have each layer save as a separate image.
is there anyway to do this without going in and deleting all the other layers then saving JUST one at a time?

if its stuff i need such as plugins just let me know.

thanks!

A couple of options

> is there anyway to do this without going in and deleting all > the other layers then saving JUST one at a time? If you perform a "File->Save As" on a multi-layer image and choose a file format (extension) which only supports single layers (PNG, JPG, for example) or to a GIF (which can only support layers as an animation) then you will prompted with an Export Dialog offering you a few different options ("Flatten", "Merge Visible Layers", etc). If you click on the "Ignore" button at the bottom of the dialog, the layer disposal options are ignored and the currently active layer is saved. If you'd rather install a script which saves all layers as separate images, there are several available that will accomplish the task. I've even written one myself which is available from the link below. Instructions are contained in the comments. http://flashingtwelve.brickfilms.com/GIMP/Scripts/sg-save-all-layers.scm

AWESOME

Thanks a lot. You're so cool!
I wanted to use Photoshop patterns but I had to do many things. Download PAT loader, open PAT file and save each layer into each file. It always takes me much time. So now with your script, It's much easier.
.mrl

Works!

Hello Saulgoode,

Thanks for that very nice script it is exactly what i was looking for but i have to admit that i am too stupid to find your Instructions in the comments.

I tried to run the script but since this is the first time i use a gimp script i really have no clue if i managed to do it in the correct way.

If someone could post me a quick step by step manual i would be really grateful! (I managed to install it and to select it but when i try to run it, it tells me: "> run sg-save-all-layers run-mode image drawable string toggle
Error: eval: unbound variable: run"

Thanks in advance!

EDIT: FOUND YOUR YT VIDEO! http://www.youtube.com/watch?v=nz4UdyeMpzA THANKS! :)

thanks a lot ..

I love you, too :-)

YESSSSS!

I was having the same issue and searched for a way to extract the frames from an animated gif file with a transparent background, and your script WORKED! I had to find out how to install plugins and scripts by searching elsewhere though, as I didn't find where you said you had put the instructions "in comments". But now everything's peachy. Thanks a bunch! For all you Windows XP users like myself, you'll find the script folder in c:\documents and settings\[your user name]\.gimp-2.4\scripts Just put the file he gave us in that folder and load up Gimp. It should be the option in the File menu below Quit when you have a gif with frames loaded.

Great script! but where do I find the saved files for each layer

Hi there, Really glad I found this post, I did get the script and copied to .gimp-2.6\scripts directory, and "save all layers" menu showed up and all. But when I tried to "save all layers" and clicked OK, the process bar showed it's saving the files, but I couldn't find files, where should they be? Thanks, David

nevermind, I see them now

nevermind my question. Just a pointer to people who's trying to do what I wanted to do: open a PDF file, and split pages into individual png files. One needs to install ghostscript, and copy all *.exe files to gimp/bin directory, install script from above, then open the PDF file, use option: open pages as: Layers. After PDF file is opened, with all the layers (pages) one wants, go to File->Save all layers, and click OK. If the files don't show up in the same directory as the opened PDF file, try to first save as a XCF file, then try to "save all layers", which worked for me this way. Hope this will help someone, and thanks again, David

You should not copy any

You should not copy any files from ghostscript to the bin directory of GIMP. Use environment variables (GS_PROG) to point to the ghsotscript executable.

I didn't find where you said you had put the instructions "

quote "as I didn't find where you said you had put the instructions "in comments". But now everything's peachy. " here ,i suppose Saulgoode referred to the "how to" the script works not on how to install it A script look as a text you may open with the notepad, then you may read the comment . you will not risk to confond it with the code because each line of the comment start with " ; "a bit as here ; here a comment line ;here another line of comment ;next lines will be no comment but code (set! theLayerVisible 0)) (more Bogus code here) the first3 lines are "comment" the last 2 (a bogus) code

YOU ARE BRILLIANT !!! TY for this script :-)

This is awesome. You saved me a bazillion hours of tedious file saving. I love you. Thank you. And thanks to the person who noted where to install. Much happy dancing going on moi studio. Really, my neighbors downstairs are wondering wtf.. :-) Thank you again and again and again...
Syndicate content