Post Reply 

Is there a "paste multiple layers as images" plugin for GIMP?

Sep 3, 2011, 05:15
Post: #1
Is there a "paste multiple layers as images" plugin for GIMP?
Hi all,

I use the "Paste as new image" feature in GIMP quite a bit and I'm deeply in need of a "Paste all layers as new images" plugin now.

I need it to do exactly what I'm stating, to paste all layers in a file as new separate images.

Since one can not select multiple layers in GIMP, pasting all layers to new separate images would be okay.

I wasn't able to find this one in a search, but who knows what it is called if it exists?

Perhaps there is some sort of batch process possible, like batch processing or Actions in Photoshop.

Thanks,

digi
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 3, 2011, 07:04 (This post was last modified: Sep 3, 2011 07:07 by digiday.)
Post: #2
RE: Is there a "paste multiple layers as images" plugin for GIMP?
Thanks ofnuts,

The third one looks like the one.

I've downloaded the "export-layers.scm" plugin and placed it at "Program Files>GIMP-2.0>share>gimp>2.0>scripts" with all the other .scm files, but I can't find where it is supposed to show up in GIMP... I've checked the "Script-Fu" section under "Filters" and it's not there... only "Console", "Refresh Scripts" and "Server" are there and I tried "Refresh Scripts" and nothing happened.

I've also checked everyplace else I can find and I don't see how this script is applied.

Any ideas?

PS: I closed and re-opened GIMP.

Thanks,

digi
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 3, 2011, 07:11
Post: #3
RE: Is there a "paste multiple layers as images" plugin for GIMP?
STRIKE THAT, REVERSE IT.

I just found it cleverly concealed under "Quit" under "File".

I'll let you know how it goes.

Thanks,

digi
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 3, 2011, 07:32 (This post was last modified: Sep 3, 2011 07:33 by digiday.)
Post: #4
RE: Is there a "paste multiple layers as images" plugin for GIMP?
Well,

I tried it two different ways, but when I set it to save with the layer name as the file name and a .psd extension, it saves all the files with each layer name as it should, but all it does is create exact duplicates of the original file, with all the layers in each file, not with one layer in each file as it should.

So if I have a file with 50 layers and I want 50 files with one layer in each file, I end up with 50 duplicate files with the original 50 layers in each of the 50 exported files.

I thought it would be too good to be true.

Just for the test I also tried it to save with the original file name and it just created one duplicate file with all of my layers.

Well, it was a gallant attempt.

Thanks for the reference anyway... it's probably somewhat common for allot of these plugins to not work the way they say they will.

digi
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 3, 2011, 09:03
Post: #5
RE: Is there a "paste multiple layers as images" plugin for GIMP?
I'm using these PSDs in Adobe Premiere as motion graphics for animation and to preserve the transparency of the imported graphic or photo so other layers will show up behind each image they have to be imported as PSDs.

This video will go to the web, but the images that I need to save from the multi-layer files that I'm creating would be easier to handle as individual files and they need to be in PSD format to preserve the background transparency in Adobe Premiere.

During the creation of these files, which have up to 140 layers in them, it is much easier to create all of the layers within a single file and save it that way, but when importing multiple files or layers in to Premiere, it is much easier to import multiple files in batches than it is to import multiple layers in batches.

And once saved, the Premiere files can handle the trick of changing support PSD file names to save time with individual files, but if all the layers are in one file, then that trick doesn't work.

digi
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 3, 2011, 18:29
Post: #6
RE: Is there a "paste multiple layers as images" plugin for GIMP?
Adobe Premiere was not intended to handle every type of web file format that was ever created. Traditionally, the PSD format is the photo standard in the world of transparency and is used in many apps for it transparency effects... this is the case with Premiere.

Many apps can or cannot use certain formats, so to say that one app is "flawed" because it doesn't use a file format that's not a standard file format for import in most movie making apps is, well, a comment made by someone who doesn't understand movie making apps.

This is not to say that you aren't an expert in GIMP, and your advice is greatly appreciated.

I'll pass your comments along to the Adobe Premiere software creation staff next time I talk to them.

I also got a reference from someone else for a GIMP script called "sg-save-all-layers.scm", downloadable at this link...
http://flashingtwelve.brickfilms.com/GIMP/Scripts/

But this script messes up the PSD file creation in a different way.

"sg-save-all-layers.scm" does work when using the PSD extension, but when it saves the separate files, each new file's layer from my original multi-layer file has been chopped down to only the width of where the content is in the original layer. So if the layers in my original file where blank space with the graphic or photo in the middle, then the resulting file created by this script is only as wide as the graphic or photo content in the middle and all the blank area of the frame has been cropped off.

This script was apparently also created to use for PNG file creation, so it wouldn't be correct to say that either of these scripts are "flawed"... they just weren't written to support the PSD format, but neither of them have information that say that they do not support the PSD file format and both of them also do allow the extension to be changed in the dialog box, so it appears that the PSD format is possibly supported, but it is not.

In the same way, Adobe Premiere is not written to support PNG files for transparency effects, but it is written to use the world standard file format for transparency, the PSD format.

digi
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 3, 2011, 19:57
Post: #7
RE: Is there a "paste multiple layers as images" plugin for GIMP?
This is very simple... the W3C website (The World Wide Web Consortium) is a web standard organization, displaying a webpage for a web file format, PNG. I'm sure you would be able to find a webpage that describes just about anything, or any file format. Just because there is a webpage about it, doesn't make it more of a standard or less of a standard as compared to other file formats.

Adobe Premiere is not a program exclusively designed for making web videos. It is a base program for making mostly high quality AVI files, though various versions of Premiere do export to other formats. Files that are rendered and created in Premiere, depending on the codec used to export and render a movie file, are ultra-high quality, extra-large AVI files... some that I've rendered are five gigabytes for a small three minute segment of video.

Usually for most movie creators, and in my use, the large AVI files are later imported in to another movie application to tie all the large AVI files together for final production.

The PSD format is supported by any image editing application that is able to do any sort of editing intended for digital printing, web production or movie production... like Photoshop, GIMP, Paint.net and thousands of others... if it doesn't support PSD, then it isn't intended to be a viable editing app for professionals.

The entire digital world doesn't revolve around the web. Before the internet, there are many of us who worked in the digital art and digital pre-press industry, before the PNG format even existed, but the PSD format did. PSD was created long before PNG... there's no chicken and egg debate about that.

digi
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 4, 2011, 19:20
Post: #8
RE: Is there a "paste multiple layers as images" plugin for GIMP?
Quote:The .PSD (Photoshop Document), Photoshop's native format, stores an image with support for most imaging options available in Photoshop.

Quote:Photoshop's popularity means that the .PSD format is widely used, and it is supported to some extent by most competing software.

OK it's from Wikipedia, but the said is true.

PSD just like DOC both are so much proprietary product related. Is it enough to call them standards because of wide usage? And how about Internet Explorer, or Windows?

GIMP user forum here at GIMP Forums. A friendly place to learn GIMP!
Everyone's welcome, feel free to join the community.
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 5, 2011, 23:17
Post: #9
RE: Is there a "paste multiple layers as images" plugin for GIMP?
We were comparing PSD versus PNG, not PSD versus the existence of the web. This is all pointless since it is so far from the original topic of this thread that this has become an amusement for anyone reading it.

I've found my answers on another forum where I discovered two scripts for GIMP that accomplish my tasks.

I do use Adobe products... the much maligned Premiere app is made by Adobe.

I also use Photoshop in addition to GIMP at my home base. Right now, elsewhere, I'm using GIMP exclusively.
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 8, 2011, 17:16
Post: #10
RE: Is there a "paste multiple layers as images" plugin for GIMP?
Glad you were able to find the solution. It would be a good maneuver from your side to give more details if one is after something similar in the future.

GIMP user forum here at GIMP Forums. A friendly place to learn GIMP!
Everyone's welcome, feel free to join the community.
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 8, 2011, 19:05
Post: #11
RE: Is there a "paste multiple layers as images" plugin for GIMP?
Four invaluable GIMP plugins (and one other app) that I needed and found via this forum and elsewhere...

1) This one is for saving all layers in a file to separate files all at once...
http://flashingtwelve.brickfilms.com/GIMP/Scripts/ The link for this one is near the bottom of the page called "sg-save-all-layers.scm". It shows up at the bottom of the "Files" pull down menu after installation in the GIMP scripts folder...
C: > Progam Files > GIMP-2.0 > share > gimp > 2.0 > scripts

2) This one can be used for animation and many, many other things... among its abilities is duplicating a layer multiple times and moving each new layer up, down, right, left and/or rotating it, which is great for still frame animation creation. It shows up under "Filters>Animation>Move Layer" after installation in the GIMP scripts folder...
http://www.gimpdome.com/scripts-n-plugin...option%29/
This script author's description mentions Mac, but this script works on PC too, since I have Mac and PC machines, I was able to check... the actual script download link is...
http://fencepost.gimpdome.com/Scripts/fp...r-anim.zip

3) This script performs all kinds of great tricks and there's lots to explore, but basically it is great for editing layers based on their similar layer names or just doing things like hiding/seeing all layers at once, linking/unlinking all layers at once, and allot more. This script creates its own new menu bar drop down menu called "LayerGroups"...
http://registry.gimp.org/node/16563

4) This is a great little app for renaming files on a Windows OS. This little "FileRenamer" app seems not to open correctly on Windows 7 unless I right-click on the desktop icon and select "run as administrator". If I do that, then it opens and works perfectly. The interface is a bit complex, but I was able to figure it out without any instructions and accomplish exactly what I needed to do. It is malware and adware free and the free version has more than enough features to perform any file renaming trick that I can think of...
http://www.sherrodcomputers.com/products...enamer.cfm

5) This last GIMP script is for making all layers in a file cover the full size of the image frame... this one is code that can be placed in a new Notepad document or any text editor document and saved as "alllayerstoimagesize.scm", or any name with a .scm extension, then placed in the GIMP scripts folder. It shows up at the bottom of the "Layers" pull down menu...

; GIMP - The GNU Image Manipulation Program
; Copyright © 1995 Spencer Kimball and Peter Mattis
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this program; if not, write to the Free Software
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
;
;
;
;
; Script can be found under Layer > All Layers to Image Size


; Define the Function

(define (fp-script-fu-all-layers-to-image-size
img
drawable)


(gimp-context-push)
(gimp-image-undo-group-start img)

(map (lambda (x) (gimp-layer-resize-to-image-size x)) (vector->list (cadr (gimp-image-get-layers img))))

(gimp-image-undo-group-end img)

(gimp-context-pop)

(gimp-displays-flush)


)

(script-fu-register "fp-script-fu-all-layers-to-image-size"
"<Image>/Layer/All Layers to Image Size"
"Resize all the layers in an image to the same size as the image."
"Art Wade"
"Art Wade"
"May 24, 2010"
"*"
SF-IMAGE "Image" 0
SF-DRAWABLE "Drawable" 0

)
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 9, 2011, 12:51
Post: #12
RE: Is there a "paste multiple layers as images" plugin for GIMP?
Uh, thanks for the in-depth information!

GIMP user forum here at GIMP Forums. A friendly place to learn GIMP!
Everyone's welcome, feel free to join the community.
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 9, 2011, 18:13
Post: #13
RE: Is there a "paste multiple layers as images" plugin for GIMP?
These scripts and renamer app, in combination, are extremely powerful and they've decreased the production time for this particular sequence of stop frame film animation by at least a factor of one hundred.

And that's just using these scripts for the five or six tasks that I needed... duplicate and move layer to the left 12 pixels up to 200+ times... hide/show all layers, link/unlink all layers... all layers to image size... save all layers to new images (including support for the PSD format) and renaming files to perfectly desired name and number sequences.

These all do what I needed, plus allot more.

digi
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 10, 2011, 10:26
Post: #14
RE: Is there a "paste multiple layers as images" plugin for GIMP?
(Sep 3, 2011 09:03)digiday Wrote:  I'm using these PSDs in Adobe Premiere as motion graphics for animation and to preserve the transparency of the imported graphic or photo so other layers will show up behind each image they have to be imported as PSDs.

This vid....

Maybe this software (very new) can be an alternative to animate your 2D http://www.synfig.org/cms/. I hope that I truly understand what you want to do here. I did have one question, why - if you are an adobe customer - are you not using the Photoshop to create native PSDs? Or are they older graphics?

[Image: 6216880253_3c00e6165e.jpg]

Love your Gimp!
Visit this user's website Find all posts by this user
Quote this message in a reply
Sep 10, 2011, 10:45 (This post was last modified: Sep 10, 2011 10:48 by digiday.)
Post: #15
RE: Is there a "paste multiple layers as images" plugin for GIMP?
diginin,

Five posts up on this thread I wrote this...
"I also use Photoshop in addition to GIMP at my home base. Right now, elsewhere, I'm using GIMP exclusively."

I've already got my project all set up and this portion of it is nearly finished with the PSDs and the scripts I found for GIMP that I posted above. The graphics that I'm using are new ones I created in GIMP and photo images that are animated... just streaming right to left movement in this segment.

I'll check in to Synfig Studio... it looks good. Is it similar to "Blender"?... that's another open source animation app that I've been wanting to get in to.

One thing I wanted to do for another portion of the film I'm working on was to create an animation of a dancer against a color background, sort of like an iPod commercial, but with the dance moves from the Napolean Dynamite movie... not sure if you've seen that. I'd really like to take this video and isolate him against a color background and just have his silouette dancing... see this movie clip...
Napoleon Dynamite Dance Scene on YT

I know I can ask about this on some video app and animation app forums, but since you are referring me to Synfig, maybe you'd know how to do this.

Thanks for the reference,

digi
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Does gimp have optical filter imitations? godek 1 95 Dec 11, 2017 11:40
Last Post: paynekj
  Any plugin for open multiple image in paint.net shinprog 1 364 Oct 31, 2017 11:38
Last Post: paynekj
  plugin save for web in Gimp 2.9.6 Dkk 1 228 Oct 19, 2017 09:02
Last Post: paynekj
  Script-fu: How to create new, addressable layer using gimp-floating-sel-to-layer Bertholom√§us 1 274 Aug 31, 2017 14:32
Last Post: Bertholomäus
  Late binding / COM for opening an image into GIMP? i73 2 226 Aug 4, 2017 17:39
Last Post: i73

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS