GIMP :: Load File As Layer In A Script
Sep 22, 2012
I can't get a simple script.scm to load a file, put it in a layer, add the layer to the active image and call it a day. My ultimate objective is to paste the same .png on top of every picture (about 70 of them) in batch mode. In order to feed the "load this particular file as a layer" command to Batch Image Manipulation plug-in, it has to be a script.
Despite a great deal of time on the internet looking for the proper syntax of gimp-load-layer, I could not find a single explanation to the "filename" parameter. Is it an absolute path? If relative, of what and where? If absolute, what's the proper syntax: do I put quotes, slash or backslash, one or two slash after C:? When I try to run my script, I get the error "Execution error for 'Test': Error: ( : 1) Invalid type for argument 2 to gimp-image-insert-layer, which I take to mean what I'm trying to feed it isn't a layer, which means the gimp-load-layer operation failed.
My stupidly simple and obstinately not working "script-fu-test.scm" is as follows:
(define (script-fu-test image drawable)
(let*
(
(position -1)
(back-layer nil)
)
(set! back-layer(gimp-file-load-layer RUN-NONINTERACTIVE image "C:/Test/test.png"))
(gimp-image-insert-layer image back-layer -1 position)
[code]......
View 2 Replies
ADVERTISEMENT
Nov 3, 2013
I downloaded/installed the PPA for Gimp 2.9.1. It worked great for the first half dozen 16-bit tiffs.I use a few RAW converters to create these tiff tiles, RawTherapee, UFRAW, and the Sony software supplied with my A700 DSLR, Image Data Converter running through Wine.
At any rate, most of the tiffs I create now cause Gimp to crash when opening new files. I get this message: Plug-in crashed: "file-tiff-load" and Opening '/home/caruso/Desktop/PHOTOS from IDC/DSC06219.tif' failed:
Files created previously continue to open as normal.
I was so thrilled to have succeeded in installing 2.9.1 on my system, but now may have to uninstall it and fall back to 2.8.x.I realize that 2.9.1 is experimental and unstable, but would like to know if this is something simple that can be fixed.
View 1 Replies
View Related
Jul 16, 2012
When I load an image either a jpeg or psd file then make a layer copy I am unable to apply a preset action to this. Either a default action or one of my own on a Mac OSX running Lion. This did not present a problem in CS5 and I am wondering if I've missed something basic?
View 10 Replies
View Related
Mar 7, 2013
I am trying to move a text layer from one open file to another. I left-click on a text layer in one file and drag it to the tab of the other file. It seems to be successful, but there is no layer added to the other file.
If I try copy and paste then there will be another layer in the other file that I have to anchor or set as a new layer. If I anchor it then it becomes a part of the default layer. If I set it as a new layer then there is some sort of success, but I can’t edit it with the text tool as I can if I copy it within the same file.
Is it not possible to copy text layers between open files and continue to edit it with the text tool?
View 2 Replies
View Related
Apr 4, 2012
How to set civil 3d 2012 to automatically load your templete file at start-up instead of a misc. drawing file with no styles or anything.
View 2 Replies
View Related
May 11, 2012
how to load custom photoshop cs5 layer styles to photoshop cs6 ?
View 3 Replies
View Related
Oct 11, 2011
After loading a layer file, Map always does a zoom extents. Is there any way to turn this off so it retains the current view?
View 6 Replies
View Related
Aug 7, 2013
I am using ACAD 2005 and am trying to copy&paste several objects from a layer I created in one .dxf file to one of the 2 standard layers (0 or Defpoints) in a new blank .dxf file.
My problem though is that if I copy and paste all of the objects (or even one of them) and them move to the new file and paste, it pastes the objects, but also "imports" into the new file the original file's layer that these objects were on.
For clarity, the new file only has the 2 standard layers and then after copy/pasting an object, the file manager shows the 3rd layer from the original file.
View 9 Replies
View Related
May 7, 2011
I get no error messages, no console messages. Just fails within a split second of trying to run.
What is gimp-console-x.x.exe?
I tried running both with verbose and this is the output:. note gimp returns instantly, having died? gimp-console blocks, after mentioning it would load script-fu. Does this imply it crashed there?
View 11 Replies
View Related
Dec 3, 2012
Why do fonts take awhile to load in Gimp? it even has in parenthesis (this may take awhile) usually it is a mere 30 seconds, but if I just install ONE new font into the system, I might as well take time to type this...
Why are loading Fonts in Gimp time consuming?
View 3 Replies
View Related
Jul 2, 2013
Why is it, when I restore a layer state to a blank drawing, it cannot load the linetypes saved to those layers? I get an error that says Linetypes not loaded and then wind up with a full set of layers all with CONTINUOUS linetype.
If I bring in a block from a toolpalette that has a new linetype and layer, it will create them for me just by inserting the block. Am I missing something??
View 6 Replies
View Related
Jul 18, 2013
Whenever I load a GIF onto a picture, it changes the color of the GIF! I make them for iFunny so I need them to look good!
View 1 Replies
View Related
Aug 20, 2011
How do you get Gimp to auto-load to the desktop on boot-up, in "Fedora-14", and in XP..?
Why does Gimp's resizing a pix always eventually fail intermittently in Fedora-14..?
I resize all my pix edits to 11-inches, to fit the screen properly.. After Gimp has resized about seven pix, on the next one, I delete the numbers after the decimal after the "11", and hit OK, but the numbers I deleted after the decimal all come back..
I must return to "Printsize", delete the whole height number, and key-in "11" for it to save the number of my choice..
How do I configure Gimp so it will resize pix without this glitch?..
Does Gimp bulk resize a collection of images?..
How do you make a HUGE Gimp-brush for color-painting extremely large areas?..
Can the user customize the default brushes?..
Is there a solid brush that the user can use to configure the angles the planes of the brush touches edits..? Would be sweet if one could touch the cursor to a spot on the brush, and twist it to the optimum position for the task, like how Fedora's color wheel changes its desktop background screen colors...
Will Gimp bulk resize a thousand pix edits to one height size..?
View 4 Replies
View Related
May 28, 2011
I am doing a process which means that I have to repeat filters and it's a slow process to keep opening the filters tab, then the recently used tab, then the filter.
I was wondering if there is a way to load the 'recently used' up onto the main tool bar so that it would be possible to go straight to it.
Specifications: Ubuntu Unity3D
Or maybe drag the 'recently used' to a separate tool bar of it's own?
View 5 Replies
View Related
May 1, 2011
I have a GIF image that I need to add something to, but I don't want to add it to every single individual layer. Is there a way to add it over or behind the entire GIF so that it remains static while the GIF's frames cycle - like a watermark or something?
Or if not, is there maybe a script-fu that copies and merges a selected layer over every other individual layer automatically, without messing them up?
I know I'll probably have to just end up manually adding it to each layer, (so many layers...).
View 2 Replies
View Related
Feb 4, 2013
How do I make the edges of the top layer blend in with the bottom layer so you cannot tell that there is a line??? I want to make it look like a heart but I don't know how to smoothen the edges to make it look like it is part of the bottom layer so when I merge the layers there is no goofy lines looking like someone cropped another fire picture out...
fire3.xcf (Size: 489.68 KB / Downloads: 38)
View 6 Replies
View Related
Apr 16, 2013
I have two similar images where the subject has moved between the images. I have them in the same file as two separate layers and am using the subtract layer mode to identify where they differ, (roughly!).
I want to be able to use the subtract layer as a completely new layer so that I can make edits to it. The only way I have found to do this at the moment is to 'copy visible', but this still brings other elements that I don't want from where the layers overlap.
View 3 Replies
View Related
Aug 18, 2012
I am trying to load single pages from multi page tiffs, convert them to monochrome (dithered), flatten the image, then save them as single monochrome, ccitt group4 tiffs. - all through scripts.
The multipage tiffs contain pages in grayscale and color which were created using the old style (problematic) JPEG compression option.
I have tried other tools, such as libtiff (modified with a patch to handle the old jpeg compression), and the latest version of imagemajick. Unfortunately they cannot correctly convert the files, whereas gimp can, but only one page of the multi-page tiff at a time(gimp crashes if I load a 5page document (as separate images) then convert each image to monochrome,flatten and save in one session)
the scripting function for loading tiffsfile-tiff-load does not expose the options to load individual pages, or to select loading as images or as layers, which the visual file load/import does.
How I can achieve this using a script.? Manually is not a problem, but too time consuming for large (eg. 200page) tiffs.
View 9 Replies
View Related
Jan 20, 2014
For the projects I'm working on, I use the same template beneath the different layer groups of each different project. When I move a "color" layer into the group, however, it doesn't show up like it's supposed to. It behaves as if the 'color' layer is a blank layer, and has no effect. Is there any way to get this to work or?...
ALSO: I can't open images by URL.
View 3 Replies
View Related
Jun 7, 2013
Why can't I align a single layer that is inside a layer group? The align tool would always select the top most layer group as the 'boundary' for alignment, thus automatically selecting the whole layers inside of it and align them as a group.
Is this a bug or just GIMP's weakness? It definitely reduces the layer group's usefulness.
View 5 Replies
View Related
Dec 14, 2012
Long time gimp user, but for basic tasks only. Now I would like to get my hands dirty a little more. I'm trying to setup a workflow that involves CAD, Inkscape and GIMP. Basically I did some architectural drawing in CAD, used Inkscape to clean up and convert DXG into SVG, so that I can use paths into GIMP. I did a script that for every path creates a new transparent layer with a layer mask using the path, so I can add fills and textures quickly. Now to the problem: say I want to add a texture from another image, i paste the image into the appropriate layer, then I want to transform the texture a bit (scale, rotate and perspective). the result is that the layer mask is transformed, too. I tried to disable the mask during transform, but didn't work.
Is there a way to workaround this? maybe some layer mode instead of layer mask?
View 8 Replies
View Related
May 14, 2012
I just downloaded GIMP 2.8 (on Windows 7) and was using the layer groups to organize a project I'm doing. I noticed that whenever I put the layers into the layer group, nothing I do to them actually affects the image (for example if I change the opacity of the layer, it doesn't actually change). If I drag them out of the layer group they function perfectly; sometimes if I edit them and then drag them into the group they also work fine.
As I was writing this post I tested dragging a layer set to "dodge" into the group and it didn't work. It kept the dodge setting, but it looked as if it was on normal; however, I drug another layer set on dodge into the group and it worked fine.
Is this feature just broken on Windows, or does it not work like I thought (where you can drag them in and edit them individually, or edit them all by editing the layer group itself)?
View 4 Replies
View Related
Nov 17, 2012
I have the latest gimp.
View 1 Replies
View Related
Oct 6, 2011
Videostudio 11+ won't load any .avi files,it just gives the message 'catastrophic failure'. Even if I scan the dv tape with the program it will save the files as avi but it still won't let me use them.
View 4 Replies
View Related
Oct 23, 2012
I have VS12. I downloaded the trial version of X5, mainly to see if it could read my VS12 files. It could. I used X5 to render a VS12 file that had continually crashed when I tried to rendered it with VS12. Not only did it render it successfully, but it did it about twice as fast as VS12 - great. However, that was yesterday. Today I've been trying to reload the original file into X5 again & I just get the message "File xxxx is already in use". Running X5 by double-clicking on the file, running X5 first & clicking the filename from the file menu or clicking Open from the file menu & selecting the file from the list - all give that result. The only way I have loaded the file is to run X5 & drag the file to the timeline. The file has opened, but the project is shown as untitled, even though there is a title. Also the project is shown as a single entity on the timeline, not made up of individual frames & captions. Where has my project gone? Is it still in X5? I've tried to open other projects, & they all give the same message! I can't try out my trial version I it won't load my projects!
PS I've just spent a few minutes holding the mouse pointer over various icons on the X5 screen & clicking a few to see where I got. After that, I had another go at loading the file - & it loaded successfully!! I assume when I loaded X5, it came up in some mode & I managed to get it out of it.
View 5 Replies
View Related
May 23, 2012
How to automatically run dvb file when acad starts, I have been trying in autocad but its not working.I am using ACAD 2007
View 7 Replies
View Related
Jul 14, 2009
noticed alot of people with C4D, so i decided to download it, just so i can make my pictures look even better, now i was wondering how people get a C4D image on to photoshop...
View 1 Replies
View Related
Oct 30, 2012
I've been found a bit of a problem, when I try to assign an IES file to a light MAX Design hard crashes. The odd part is that when I open the IES file in 3ds MAX, not Design, it loads correctly. I've installed all the updates but it still happens.
I've attached the IES files in question, how can get it to work.
Edit- apparently I can't attach the IES files for some reason.
View 2 Replies
View Related
Feb 28, 2011
I have loaded a material library file to material editor. Now every time open a file and I open the material editor I found those material libraries loaded, I don't want those files now, how do I can unload them?
View 4 Replies
View Related
Jan 12, 2014
In LR4, I was able to create a gpx file on my iPhone while on a photowalk using the "Trails" application. When done the walk, I would email myself that tracklog and save it on my desktop. Using LR5, I can select my gpx file on the desktop, but it does not load. Nothing happens. In LR4, it would show my route on the maps screen and I could auto tag images. But not in LR5.
How can I get LR to read my track logs again so that I could auto tag my photographs.
I ensured that the camera and iPhone clock were both synchronized before the walk.
I am using OSX (all updates applied) and LR5.3.
View 1 Replies
View Related
Nov 24, 2013
How would you take a layer mask, and make it its own layer? If you try copying and pasting a layer mask, you can only dock it to another layer.
View 1 Replies
View Related