GIMP :: How To Manage Existing Images Layers With Python - Fu
Jun 22, 2011
how can I manage existing images, layers, ecc. with Python-Fu? Its methods don't accept IDs (unlike Script-Fu) and it returns me an error if I try to do it. More simply, how I can reference to an existing "IMAGE", "DRAWABLE", ecc. object?
View 1 Replies
ADVERTISEMENT
Dec 31, 2012
I have a gif animation that has 190 layers. It's a too much. I want to remove one out of three layers via the python-fu console. Here's what I did :
image = gimp.image_list()[0]
image.layers = [layer for (index,layer) in enumerate(image.layers) if index % 3]
Traceback (most recent call last): File "", line 1, in
AttributeError: attribute 'layers' of 'gimp.Image' objects is not writable
What is the correct way of removing layers ?
View 1 Replies
View Related
Jul 25, 2012
I've created an image with several layers and want to group some of them buthave problems.
As stated in the docs, "You can add existing layers to a layer group byclick-and-dragging them."
And also, "The hand representing the mouse pointer must turn smaller beforereleasing the mouse button.
A thin horizontal line marks where the layer will be laid down"
However, I don't see neither a hand, nor a thin horizontal line.
I see a small scaled preview of a layer, and the mouse cursor turns to acorner, not a hand.
I use GIMP 2.8 on windows 7 64 bit.
I've created an image from several PNGs. I've opened one of those PNGs, saved it as .xcf, and then opened others fromFile->Open as layers...
Then I've created new Layer group by right-clicking on the Layers tab andselecting the respective menu item. Then I've run in the problems, describedabove.
Seems I'm doing something wrong.What?
View this message in context: [URL].....
Sent from the Users mailing list archive at [URL]....
View 1 Replies
View Related
Sep 2, 2013
Python plugins are not installing. They don't show up. Script-Fu works fine though.
View 9 Replies
View Related
Sep 13, 2012
I'm having some problems with a python command. I'm working on an image that is 640x640. I'm trying to do a horizontal flip of a layer with this command:
pdb.gimp_item_transform_flip(layer, 320, 0, 320, 1)
the flip succeeds, but it generates a distortion on the flipped layer. When I try to flip that layer through gimp's interface, it is smooth.
I understood that the input values for the flip function were the layer, x and y of one point of the axis from wich the image will be flipped, and x and y of the end point of that axis. Here is the failure in the flip that I mentioned: URL....
this shouldn't happen or the flip will be useless for what I am trying to do. (the eye with problems is the first one, from left to right).
View 2 Replies
View Related
Jun 29, 2012
I'm trying to write a python plug-in, but it refuses to register. I went and downloaded another python plug-in, which did successfully register.
View 1 Replies
View Related
Jun 30, 2012
I want to create a plug-in that will improve detail in under- and over-exposed areas of photos, but I can't get as far as duplicating a layer. I'm new to GIMP plug-ins. My plug-in below is intended to create a copy of the image's layer and add the layer to the image.
The plug-in will register in Windows 7 (GIMP 2.8) but won't register in Ubuntu 12.04 (GIMP 2.6.12). In Windows, the plug-in gives an error. I don't get an error if I comment out line 8: Code:
View 2 Replies
View Related
Oct 11, 2011
I have followed the instructions here [URL]......... installed GTK+, fiddled and cajoled and still I cannot get python scripts to run from within Gimp. The scripts show up in the menu within Gimp, but when clicked on, do nothing.
I am using Windows 7 32 bit, Gimp 2.6. I installed Python 2.6, pygtk all-in-one installer 2.2.
View 3 Replies
View Related
Aug 5, 2013
I'm doing an script in python and i need use the map-object plug-in. I tried to use but always i have an error with the arguments and i can´t find out whats wrong.
I used reference examples of scm but didn't work, so one in python will be enough.
View 4 Replies
View Related
Oct 28, 2013
Is it possible to manage layers of a PSD file into Illustrator? I placed a PSD file whick contents 3 layers into Illustrator. In Illustrator I would like to be able to open and close the layer from PSD file (as it can be done in InDesign).
View 1 Replies
View Related
Jun 10, 2012
How to take 4 images of the same size and using layers, put the images next to and on top of each other, for a very nice array of all 4 images saved as one.
Now, though, I'm attempting to do the same thing, but use images of different sizes. Unlike before, when using the "Align" function, the layers are now stacking on top of each other, instead of next to each other.
The only variable I see that is different is that all the images are no longer the same size.
View 10 Replies
View Related
Apr 9, 2011
Basically what I need to do is capture a video shot, and place a play button on top of it. I thought the simplest way would be to just open each image as a separate layer but couldn't find a way to do that.
Eventually I made the screen shot the background image of an html page, and the play button the foreground image. Then I was able to position them just the way I wanted and capture a screen shot, then trim and edit in Gimp.
View 3 Replies
View Related
Sep 3, 2011
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.
View 19 Replies
View Related
Feb 1, 2012
How could I select and move two or more images (different layers) together?
Is it possible to align one image considering the position of the other?
View 4 Replies
View Related
Jun 1, 2011
I have scoured the net for any Script-Fu or Batch to do this, and only find old code that is no longer good for gimp 2.6. For some absolutely insane reason (as far as I am concerned), gimp has failed time and time again (since their inception) to actually make it available to export multiple images at the same time. I literally have 300 layers, and for me to crop them all and save them as images would take an entire day.
Why hasn't this been made available? Is there any code or anything I can use to accomplish this task in Gimp 2.6? Photoshop allows it, and has since its inception! Why not Gimp? Is it that difficult to create? Are there really no plugins to do this?
View 10 Replies
View Related
Aug 3, 2012
I'm new to GIMP. I want to use it to create/test colour (or greyscale) separations for a woodcut, but I'm finding it hard.
For example I have attached a black and white image. kirsty.JPG (84.7K)
Number of downloads: 3
I open the image in GIMP, then from Image I choose mode - indexed, 4 colours. So far so good as this gives me the 4 greyscale levels I need to create a two block woodcut. Now I use the 'select by colour' tool to find the first colour, and I paste this into a new layer. That works fine. Then I select the next colour and try to paste that into a second new layer, but it doesn't work. It produces another layer called 'Floating Selection (pasted layer)' and won't paste the second or third layers.
How can I separate the 4 layers into individual images??
View 4 Replies
View Related
Dec 19, 2013
I want to write a script that will import images from a directory and then place each image into its own layer.
View 1 Replies
View Related
Sep 23, 2013
I would like to use the Bash command line to open two images into GIMP, each image on a layer. The code below opens the two images into separate GIMP windows.
>> gimp image1.jpg image2.jpg
How can I open the two images into one GIMP window and two layers?
View 4 Replies
View Related
Feb 3, 2012
If I work in Edit mode all the time I can open as many pictures as I like from the Organizer and have them all open at the same time. If I return to the Organizer and open another image, the ones already open are not affected. However if I go to the Manager tab (which only seems to be the Organizer on a separate page) to select an image I have to close any and all items already open in the editor. Surely this cannot be intended behaviour. In X3 it was possible to open images in the Organizer which was on a separate page and then return to it and open others without the original ones closing so why can't we do this in X4? The Manager does allow multiple images to be selected and opened at the same time but these are still closed if at any time you return to the Manager.
Update: I have now read a few posts about this problem and indeed it is not possible to switch between Edit and Manage modes without closing any images you have open for editing. The general feeling seems to be that this is not a problem as the Organizer (File manager) is available in Edit mode anyway so there is no need to go to the Manage tab. However I would disagree with this as some of my folders contain large numbers of images and it is much easier to browse through them using Manager in thumbnail mode as you can see far more images at once than with the Organizer in Edit mode. Also I find that Organizer gets in the way in Edit mode and would much prefer to switch back and forth to the Manager as was possible in X3.
Even if this problem does not affect everyone it is still difficult to understand why Corel would insist that images in the Editor are closed before switching to Manage mode. I cannot personally think of one reason why this would be preferable. Additionally the Organizer in Edit mode does not appear to have any way of resizing the thumbnails to optimize the number viewable at any one time.
View 3 Replies
View Related
Feb 5, 2013
I purchased PSP 5 and uninstalled PSP 4. After installation, I am unable to see any image previews in manage, adjust or edit mode. I have installed the service pack updates with no change in this absent function. Neither the main window nor the organizer palette will display any jpg image previews. I CAN go manually to a specific file and open the image and edit it at will, but I cannot see any previews of any images in the main or organizer palette. how to get the program to display image previews. I never had this problem before in any of the previous PSP versions. I have also uninstalled, rebooted and reinstalled the program to no avail.
View 2 Replies
View Related
Jan 8, 2013
what is the AutoCAD command for removing existing layers within AutoCAD 2013.
View 3 Replies
View Related
Oct 17, 2011
How do I prevent this from popping up, more specifically, how do I keep it from popping up during a publish?
View 9 Replies
View Related
Jul 29, 2012
Is there a method to import Layers from existing DWG file to another? I want to import all layers with their names.
View 3 Replies
View Related
Oct 25, 2013
how to apply new mask to multiple existing adjustment layers
View 7 Replies
View Related
Apr 24, 2013
I am trying to create a new document with new layers, but paste in an existing floor plan since it's the shell I need to be using. When I copy clip and insert into new file, all the layers import with it. I transferred everything onto 0 layers and went into my layer manager to try and delete the extra layers and it says i cannot delete o, xref dependent, etc. I want to create my own layers, and then assign the lines in the plan myself onto the new layers.
View 4 Replies
View Related
Jul 5, 2013
Note Layer > Duplicate will not work in this regard, because I want to copy one group of paths/elements from one layer to other existing layers, not to a new layer.
I have not found a command for this, nor have I found any scripts. Note I'm using CS3 but have been thinking about an upgrade.
View 15 Replies
View Related
Jan 17, 2014
How can I import images onto an existing template?
View 2 Replies
View Related
Jan 7, 2013
How can I import images into a new LR library and retain the existing metadata for each image? It only seems possible to import and apply new metadata or to import without applying metadata which means the existing metadata is not imported...?
View 5 Replies
View Related
Jan 27, 2012
The external hard drive that I've use for my LR photos is filling up. I've bought a new, larger hard drive. How do I relocate my existing images into the new hard drive so that LR continues to locate them?
View 2 Replies
View Related
Jun 21, 2012
I wrote a small script in python to write dxf files out. I want to add this to a button on the ribbon. I got that sorted out and can get my button to appear where I want it. I am having trouble calling the script from the button though.
The API tells me that the button has an OnExecute() event that I should listen for to call my script. I have been searching on how to do that from python but I haven't had any luck.
View 2 Replies
View Related
Apr 21, 2013
i have made same rigging as wagon car rigging from DT.i have added suspension also.
for scripting part other scripting's is working all right.but scripting for tyres take time.
for auto_rev and revolve option it takes time.wheel spin rotates without any problem.
View 2 Replies
View Related