It is currently Thu Apr 25, 2024 2:58 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: How to save all layers as single images? [solved]
PostPosted: Sat Oct 18, 2014 8:04 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 591
GIMP 2.8.10
OS: Windows XP
I'd like to open multiple images in a single image, then make modifications to them (eg overlay background). It would be possible to save all layers as individual images each layer overwriting the old corresponding image? I tried the script "sg-save-all-layers", but I can not find where the layers have been saved. I have also the script "sg-sequential-edit" but it demands to save all layers one by one.

_________________
Image


Last edited by Carlos Diniz on Sun Oct 19, 2014 4:19 pm, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: How to save all layers as single images?
PostPosted: Sat Oct 18, 2014 8:13 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Carlos, I tried the save all layers by Saulgoode and they went into my home/molly folder, so they should go into your windows\carlos folder.

_________________
Image


Top
 Post subject: Re: How to save all layers as single images?
PostPosted: Sat Oct 18, 2014 9:01 am  (#3) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
On Windows, you should be able to specify the directory as part as the filename as long as you use two backslashes instead of just one where ever they appear in the path (for example, "c:\\Documents and Settings\\carlos\\filename-~~~.png").

I do not have access to Windows in order to test this.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: How to save all layers as single images?
PostPosted: Sat Oct 18, 2014 9:16 am  (#4) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
If all the images were opened at once using "Open as layers" dialog. The saved images should be saved to the folder that the images came from. I'm not sure where images that were opened separately and then add as layes would be saved.
The images saved using "sg-save-all-layers" will not overwrite the original images, even if the original images were of the same type of file extension .eg, png, jpg, gif or whatever.

Saulgoode has stated, "you should be able to specify the directory". This does not occur. Once the "Export layes as separate png" is pressed/clicked, there is no dialog. It saves the images instantly without any input as to where the images will be saved.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: How to save all layers as single images?
PostPosted: Sat Oct 18, 2014 9:30 am  (#5) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Yes they do that and maybe the script could be modified to give that option but for now, they go
straight into your user folder.

_________________
Image


Top
 Post subject: Re: How to save all layers as single images?
PostPosted: Sat Oct 18, 2014 10:15 am  (#6) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
molly wrote:
Yes they do that and maybe the script could be modified to give that option but for now, they go
straight into your user folder.

Default for windows is usually "My Pictures". I'm not sure if a default save directory can be set in Gimp preferences to whatever folder you like. Never really thought about that. I digress...
Images I save/export "normally" have always gone to where they were opened from, whatever that may be.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: How to save all layers as single images?
PostPosted: Sat Oct 18, 2014 10:56 am  (#7) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Wallace wrote:
If all the images were opened at once using "Open as layers" dialog. The saved images should be saved to the folder that the images came from.

When files are opened as layers, GIMP does not make any record of where the source file is located. It is not possible (to my knowledge) for a script to ensure that layers are saved back to the directory whence they came.

Wallace wrote:
The images saved using "sg-save-all-layers" will not overwrite the original images, even if the original images were of the same type of file extension .eg, png, jpg, gif or whatever.

Files will be overwritten if they happen to be in the same directory and have the same name as the corresponding files. However, per my previous comment this will only be the case if the user intervenes or the files happen to be taken from/saved to GIMP's default output directory. (GIMP's output directory is typically specified with the shortcut's "RUN IN FOLDER" property.)

Wallace wrote:
Saulgoode has stated, "you should be able to specify the directory". This does not occur. Once the "Export layes as separate png" is pressed/clicked, there is no dialog. It saves the images instantly without any input as to where the images will be saved.

My script, as provided here, does not behave the way you describe. Perhaps you speak of a different script?

Carlos, I would be happy to customize the behavior of the script to your needs*, if you'd like.


* to the best of my abilities, anyway.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: How to save all layers as single images?
PostPosted: Sat Oct 18, 2014 11:30 am  (#8) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
saulgoode wrote:
Wallace wrote:
If all the images were opened at once using "Open as layers" dialog. The saved images should be saved to the folder that the images came from.

When images are opened as layers, GIMP does not make any record of where the source file is located. It is not possible (to my knowledge) for a script to ensure that layers are saved back to the directory whence they came.

Wallace wrote:
The images saved using "sg-save-all-layers" will not overwrite the original images, even if the original images were of the same type of file extension .eg, png, jpg, gif or whatever.

Files will be overwritten if they happen to be in the same directory and have the same name as the corresponding files. However, per my previous comment this will only be the case if the user intervenes or the files happen to be taken from/saved to GIMP's default output directory. (GIMP's output directory is typically specified with the shortcut's "RUN IN FOLDER" property.)

Wallace wrote:
Saulgoode has stated, "you should be able to specify the directory". This does not occur. Once the "Export layes as separate png" is pressed/clicked, there is no dialog. It saves the images instantly without any input as to where the images will be saved.

My script, as provided here, does not behave the way you describe. Perhaps you speak of a different script?

Carlos, I would be happy to customize the behavior of the script to your needs*, if you'd like.


* to the best of my abilities, anyway.

The script I'm using was last modified/tested by Paul Sherman; 02/03/2014 on GIMP-2.8.10 and shows up at File>Export layers as separate png.
This script saves files to where they came from and adds .png to the end of the file's name, so the new saved file name would look something like this, "ImageX.png.png" and so the files are not overwritten.
Sorry for the confusion on my part.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: How to save all layers as single images?
PostPosted: Sat Oct 18, 2014 6:06 pm  (#9) 
Offline
GimpChat Member

Joined: Jul 11, 2010
Posts: 349
There is another python script "export_layers_repeatable_0.1.py" that asks where to save the layers. Another nice item is that you can chouse all layers or only visable layers.

# export_layers_repeatable_0.1.py - 2012 by Pako <lubos.ruckl@gmail.com>
#
# Written based on the original plugin
# "python-fu-export-layers" by Chris Mohler <cr33dog@gmail.com>
#
# This script allows you to export selected (or all) layers as individual image files.
# You can execute the task again, because the dialogue does not close after export.
# Just copy it under your home directory in .gimp-2.x/plugins (works with >=2.4)
# and (only if os==linux) chmod it for execution.
# You do not need to worry about the file name, because the script can automatically
# add a number to the filename.


Top
 Post subject: Re: How to save all layers as single images?
PostPosted: Sun Oct 19, 2014 4:18 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 591
Thanks Molly, saulgoode, Wallace and bilbo9955.
After a systematic research I discovered that the new modified images were stored in "C: \ Program Files \ GIMP 2 \ bin". This folder was not the source folder.
saulgoode, I suggest that the script contains the option of choosing a folder where we want the new image to be placed. I got the impression that most people who will use the script, as it is today, will not find the new images like me. This folder (\GIMP 2\bin) is not the GIMP's default output directory.
I never suspected that the new images could be stored there.

_________________
Image


Top
 Post subject: Re: How to save all layers as single images?
PostPosted: Sun Oct 19, 2014 5:02 pm  (#11) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Carlos Diniz wrote:
Thanks Molly, saulgoode, Wallace and bilbo9955.
After a systematic research I discovered that the new modified images were stored in "C: \ Program Files \ GIMP 2 \ bin". This folder was not the source folder.
saulgoode, I suggest that the script contains the option of choosing a folder where we want the new image to be placed. I got the impression that most people who will use the script, as it is today, will not find the new images like me. This folder (\GIMP 2\bin) is not the GIMP's default output directory.
I never suspected that the new images could be stored there.

I'm happy that you found those files, I wish I could've been more helpful with this issue.
I feel that there may be more to this then what you have already posted, but only you can tell us what that might be.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: How to save all layers as single images?
PostPosted: Mon Oct 20, 2014 2:20 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 591
Wallace wrote:
Carlos Diniz wrote:
Thanks Molly, saulgoode, Wallace and bilbo9955.
After a systematic research I discovered that the new modified images were stored in "C: \ Program Files \ GIMP 2 \ bin". This folder was not the source folder.
saulgoode, I suggest that the script contains the option of choosing a folder where we want the new image to be placed. I got the impression that most people who will use the script, as it is today, will not find the new images like me. This folder (\GIMP 2\bin) is not the GIMP's default output directory.
I never suspected that the new images could be stored there.

I'm happy that you found those files, I wish I could've been more helpful with this issue.
I feel that there may be more to this then what you have already posted, but only you can tell us what that might be.

Wallace, I posted all my questions. I don't have anything more to tell. What you are guessing or feeling?

_________________
Image


Top
 Post subject: Re: How to save all layers as single images?
PostPosted: Mon Oct 20, 2014 2:31 pm  (#13) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Carlos Diniz wrote:
Wallace, I posted all my questions. I don't have anything more to tell. What you are guessing or feeling?

Oh okay.
I just thought that there may be something more.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts save images according to abc

1

No new posts Images turning pale/colder after you save screenshot

3

This topic is locked, you cannot edit posts or make further replies. Attachment(s) Interlace single letter text with a single layer? [Solved]

8

No new posts Attachment(s) Trying to open as layers 3 til files Red, Green, Blue, Filter images

2

No new posts Where did GIMP save my file, & how do I change default save location

5



* Login  



Powered by phpBB3 © phpBB Group