Questions tagged [gimp]

For questions about programming the GNU Image Manipulation Program, including plug-ins. Remember to include appropriate tag(s) for the programming language in use. Questions about non-programming use are off-topic for Stack Overflow; consider asking on Super User or Graphic Design instead.

Gimp is an acronym for Image Manipulation Program. It is a freely distributed program for such tasks as photo retouching, image composition and image authoring.

The core of GIMP is implemented in .

Plug-ins may be implemented in a wide choice of languages, including , and and .

Resources

Gimp programming tutorials

Books:

922 questions
18
votes
5 answers

How to extract text from a PSD file?

I need to extract the text from the layers in a photoshop PSD file on linux. Does anyone know how to do that? Gimp rasterizes the text and you can't copy and paste it. Also, note that I do not own the Photoshop program.
rado
  • 4,040
  • 3
  • 32
  • 26
17
votes
1 answer

GIMP palette file (.gpl) format / syntax?

I'm looking for the exact specifications of this file format. Anyone got a link? Or want to comment? I have spent the better part of the day searching, yet I keep getting directed back to the GIMP online user-manual. It says "look at a .gpl file…
17
votes
1 answer

Gimp - Easy way to make many layers visible?

In Gimp, I've created a .xcf file that consists of some 200 layers. Some are visible and some not. Now I want to create a picture that consists of all layers, so I have to make all layers visible. Later I'll have to return to the state where some…
Jogan Thums
  • 227
  • 1
  • 2
  • 9
17
votes
3 answers

Split image into parts

Is there anything in imagemagick or gimp or other linux compatible tool what can automatically detect individual objects on image and either return some location of object or store each object as separate image? I have image like this one: For…
Tomas Greif
  • 21,685
  • 23
  • 106
  • 155
15
votes
3 answers

Could not read the contents of Desktop: Operation not permitted ~ GIMP ~ Mac ~ MacBook ~ macOS Catalina

After recent update to macOS Catalina all programs are asking if I'm giving the right permissions for them. Unfortunately, with GIMP it was not the case and whenever I'm trying to open any file using GIMP I have the following error Could not read…
Daniel Danielecki
  • 8,508
  • 6
  • 68
  • 94
14
votes
2 answers

Stroke Selection won't use selected color

I'm having this problem where stroke selection won't use selected color. So I'd select an area and go to Edit -> Stroke Selection then Gimp would automatically change my selected color to another color. I don't know how to fix this.
user977151
  • 495
  • 5
  • 9
  • 18
14
votes
1 answer

Writing a GIMP python script

What I want to do is to open gimp from a python program (with subprocess.Popen, perhaps), and in the same time, gimp will start with a python script that will open an image and add a layer... Well, how can I achieve that(I wish GIMP had better…
Antoni4040
  • 2,297
  • 11
  • 44
  • 56
13
votes
3 answers

How do I output info to the console in a Gimp python script?

I've just started learning about Gimp scripting using Python, and was wondering, how do I output text to the console? I am using version 2.7.5 on Windows 7. I tried the print function, but it does not write anything to the python-fu console or the…
Aralox
  • 1,441
  • 1
  • 24
  • 44
13
votes
1 answer

How to use PyCharm for GIMP plugin development?

I need to develop a plugin for GIMP and would like to stay with PyCharm for Python editing, etc. FYI, I'm on Windows. After directing PyCharm to use the Python interpreter included with GIMP: I also added a path to gimpfu.py to get rid of the error…
martin's
  • 3,853
  • 6
  • 32
  • 58
13
votes
3 answers

How do I save (export) all layers with gimp's script fu?

With gimp fu, I can save the content of one layer (at least, that is how I interprete the definition of gimp_file_save because it takes the parameter drawable). Now, I have the following script: from gimpfu import * def write_text(): width =…
René Nyffenegger
  • 39,402
  • 33
  • 158
  • 293
13
votes
3 answers

ImageMagick "color to alpha" (like The GIMP)

I'm trying to do what The GIMP does when selecting "color to alpha" with an actual colour. I've got an image that has the color #a0132e in it, and I want that converted to transparency. Not only that exact colour, but any colour diverting from it,…
Thany
  • 285
  • 2
  • 11
11
votes
3 answers

How to use GIMP inside a Python script?

GIMP enables you to make plugin in in Python, what I would like to do is to call GIMP function like I would do inside one of this plugin but this return the following error since GIMP doesn't find any running GIMP Core to use. LibGimpBase-ERROR **:…
AsTeR
  • 7,247
  • 14
  • 60
  • 99
11
votes
2 answers

How to run python scripts using gimpfu from command line?

I'm trying to use functions of gimp 2.8.22 to convert a pdf to jpeg and i want to do that with a python script using the gimpfu library from my windows cmd (i have installed python 3.6.1). Right now, i't trying to do that with an example…
flixe
  • 626
  • 1
  • 11
  • 36
11
votes
1 answer

Gimp: python script not showing in menu

I followed this tutorial and this is what I have come up so far: #!/usr/bin/python # -*- coding: utf-8 -*- #http://www.ibm.com/developerworks/library/os-autogimp/ from gimpfu import* def plugin_main(timg, tdrawable, maxh=540, maxw=800): …
kyng
  • 457
  • 1
  • 6
  • 13
11
votes
6 answers

How to parse out base file name using Script-Fu

Using Gimp 2.6.6 for MAC OS X (under X11) as downloaded from gimp.org. I'm trying to automate a boring manual process with Script-Fu. I needed to parse the image file name to save off various layers as new files using a suffix on the original file…
Donald Byrd
  • 7,668
  • 4
  • 33
  • 50
1
2
3
61 62