Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,021
» Latest member: tubematec
» Forum threads: 7,749
» Forum posts: 42,103

Full Statistics

Latest Threads
Cropping Image
Forum: General questions
Last Post: rinaldop
45 minutes ago
» Replies: 5
» Views: 252
Too many fonts - where ar...
Forum: General questions
Last Post: AdmFubar
5 hours ago
» Replies: 2
» Views: 176
an iOS app that assists p...
Forum: Other graphics software
Last Post: zzh
Yesterday, 01:10 PM
» Replies: 5
» Views: 588
Alivecolors
Forum: Other graphics software
Last Post: denzjos
12-25-2025, 08:27 AM
» Replies: 0
» Views: 103
gimp 3 and 8bf files
Forum: Extending the GIMP
Last Post: denzjos
12-24-2025, 02:03 PM
» Replies: 0
» Views: 136
Preferences/Folders shows...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: programmer_ceds
12-24-2025, 10:08 AM
» Replies: 5
» Views: 3,071
Problems with AppImages.
Forum: Installation and usage
Last Post: teapot
12-23-2025, 07:45 PM
» Replies: 2
» Views: 369
Why am'I fighting with GI...
Forum: Linux and other Unixen
Last Post: NetWeeZurd
12-23-2025, 01:44 AM
» Replies: 2
» Views: 227
Can tooltip display time ...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: NetWeeZurd
12-23-2025, 01:40 AM
» Replies: 4
» Views: 1,337
Problem posting an update...
Forum: Gimp-Forum.net
Last Post: Scallact
12-21-2025, 10:19 PM
» Replies: 19
» Views: 1,074

 
  List layers without loading image?
Posted by: ChameleonScales - 02-06-2021, 03:48 PM - Forum: Scripting questions - Replies (20)

Using python-fu, is there a way to list the layer names of an xcf file without loading the whole file?

Right now I list them like this:

Code:
image = pdb.gimp_file_load(some_filepath,same_filepath)
for l in image.layers :
    print(l.name)
gimp.delete(image)

The problem is that I use it on many very heavy xcfs and the listing can take a few minutes, which I feel could be improved.

I can find the layer names in the gibberish of the xcf when I open it with a text editor (Atom) but don't see a recurring pattern around so not sure this can be exploited by a direct text search in the file.

Any chance of there being an efficient solution?

Print this item

  Interleaving layers of two GIFs of different sizes
Posted by: Muzozavr - 02-06-2021, 02:32 AM - Forum: General questions - No Replies

Hello! Newcomer here. I have two GIFs (let's say A.gif and B.gif) both with an equal amount of frames, but their size is different. They need to be interleaved: A-Layer1 -> B-Layer1 -> A-Layer2 -> B-Layer2 and so on.

How do I achieve this? There seems to be no automatic option from what I can tell, but there has to be. Is there something I'm missing? Or do I need a plugin for this?

I'd do it manually, except working with 1152*2=2304 layers... oof. It's actually making my computer lag at points, making doing it manually feel even more awful than it otherwise would've been.

EDIT: OK, I may be stupid, I did see ofn-interleave-layers as a google result, but misread what it does, though it could only interleave copies of one layer between the image layers. And its documentation ALSO lists how to change image size with canvas commands without scaling.

I'm leaving this thread in case someone else needs it, I've seen enough "nevermind, figured it out" online to want to leave a tip. I haven't tested the script YET, but it should work.

Print this item

Photo How to keep file quality?
Posted by: Utajeny5 - 02-05-2021, 09:18 PM - Forum: General questions - Replies (2)

When i want resize image to format 800 x 800 px from 16 x 16 px what do i must do? I opened image that naturally is 16 x 16, and i just want to make it bigger and keep resolution. I tried to make minecraft dirt block to be in 800 x 800 format. [Image: Zmatat-hnet.png]
And when i resize it to 800 x 800 this happens: [Image: Zmatat-hnet.png]
What i need to do is to have same image in 16 x 16 and sam image in 800 x 800. Im sorry for this coplications but im starting with gimp.

Print this item

  brush essue
Posted by: denzjos - 02-05-2021, 06:49 PM - Forum: General questions - Replies (2)

I wonder why a do not get a sharp result when erasing with a brush and get a dark contour when turn the brush 90 degrees. The working layer is transparent. In the middle there are two brushes drawn with the pencil tool. On the left the one brush is turned 90 degrees and there is a dark boundary around it. When I use both brushes to erase a line, then erasing is not pixel sharp.Do I miss something or is it a bug? Thanks for your answer in advance.
 
.zip   brush error.zip (Size: 29.82 KB / Downloads: 406)

Print this item

  How use a png with a transparent background as a mask
Posted by: daveq - 02-05-2021, 06:31 PM - Forum: General questions - Replies (7)

I am trying to add an arrow pointer onto a picture (and plan to do a lot). I have added a png of the arrow, which I know has a transparent background, to a second layer. I have tried to set it up as a mask, but dont understand the finer details - it just stays as a complete rectangle. NB: Have successfully re-sized it & am trying to rotate it. I am new to GIMP, but IT competent.

Print this item

  Outline Disappears ...
Posted by: scatterbrainz - 02-05-2021, 10:22 AM - Forum: General questions - Replies (1)

Greetings Folks, 

I just re-installed GIMP 2.10.22 (rev 3.0) on brand new Mac M1 Mini. I've noticed that when I use the rectangle or ellipse tool, - I draw the shape. Then I attempt to use the "bucket fill" to colour the shape in, but the outline of the shape that was once visible is now INVISIBLE. So you can actually see where the shape is on the canvas, and your guessing as to where it went. 

I'm not sure if this is a setting somewhere, or a bug ? or ? 

Anyone have any ideas ?  - I'd greatly prefer not going back to illustrator. 

Best Wishes, 

-scatterbrainz

Print this item

Rainbow How do I paste invisible image to gimp?
Posted by: ColdIce2137 - 02-04-2021, 09:21 PM - Forum: General questions - Replies (4)

I wanted to paste some image from google with invisible background (like this) onto another image, but it just doesnt work, it isn't transparent. [url=https://previews.123rf.com/images/kolibrico/kolibrico2002/kolibrico200200005/139369246-vector-empty-transparent-background-vector-transparency-grid-seamless-pattern-.jpg][/url]

Print this item

  supershapes
Posted by: denzjos - 02-04-2021, 06:03 PM - Forum: Other graphics software - Replies (2)

Want some weird shapes on your artistic drawings, supershapes can help you :
http://andrewmarsh.com/apps/releases/supershapes.html

   

Print this item

  Scripts do not appear in menu
Posted by: MQ95 - 02-04-2021, 02:09 PM - Forum: General questions - Replies (9)

Hi, i'm using Gimp 2.10 on ubuntu-based linux.

I'm trying to follow this guide on how to get started with GIMP scripting, but when I save the .py file in the scripts folder or the plug-ins folders nothing happens.

When I restart GIMP I don't see the option to run that script in the menu.
I've also tried downloading other scripts from the internet, put them in the scripts folder and plug-ins folder, and same thing, they don't appear in the menu.


Am I doing something wrong?
This is the script's code, which I copied from the tutorial:


Code:
#!/usr/bin/python

from gimpfu import *

def first_plugin(timg, tdrawable):
 print "Hello, world!"

register(
 "hello_world",
 "Presents a Hello, World! message",
 "Presents a Hello, World! message",
 "Brad Jones",
 "Brad Jones",
 "2017",
 "<Image>/Image/Hello, World!",
 "RGB*, GRAY*",
 [],
 [],
 first_plugin)

main()


It's from 2017, so maybe it's not compatible anymore?

Thanks for the help guys.

Print this item

  Foreground Select tool fails in Draw Mode
Posted by: Joydeck - 02-04-2021, 06:08 AM - Forum: General questions - Replies (2)

On a layer in my Layer Group, the Foreground Select tool rough-selectsDraws, but on releasing the mouse button nothing remains drawn on the layer.  (Foreground Select does work if I select the Layer Group rather than the layer.)

If I drag my Layer Group to a new image, Foreground Select works fine.

Since I had been experimenting with filters on the layer, maybe GIMP 2.10.22 lost its way somewhere.  Is this likely a bug or am I missing something?

Print this item