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
6
votes
2 answers

Installing PyGIMP on Windows

On the web, I can find various example on gimp scripting with python. http://www.jamesh.id.au/software/pygimp/ http://www.gimp.org/docs/python/pygimp.html We need to import the gimpfu module to get the examples to work. Where can we get the…
Speccy
  • 694
  • 8
  • 30
6
votes
2 answers

Get sublayers from group layer with Python in Gimp

I have an XCD file with a nested layers structure: image front-layer content-layer content-layer-name-1 content-layer-name-2 content-layer-name-3 back-layer I open the file with image =…
tbicr
  • 24,790
  • 12
  • 81
  • 106
5
votes
2 answers

Gimp 2.8.22: Change Color & Keep Transparency

I have simple images in black and transparent and would like to change it to white and transparent. And I want to keep the transparency (80% black and 20% transparent >> 80% white and 20% transparent, 30% black and ...). I tried the fill bucket,…
Bernhard
  • 171
  • 1
  • 9
5
votes
3 answers

How to debug script-fu scripts for gimp in scheme?

I try to make some script for gimp, using script-fu, scheme. Naturally, as a beginner, there are lots of errors and misunderstandings. Now I'm looking for a way to debug those scripts. I found (gimp-message), but the result does not show up. I'm not…
Gyro Gearloose
  • 1,056
  • 1
  • 9
  • 26
5
votes
1 answer

Resize image by percentage on both x and y on command line with Gimp

AFAIK, it should be possible. I know that convert of ImageMagick makes this task trivial, but I cannot use ImageMagick, therefore I am leaning towards Gimp (on Windows). I have tried with this Guile script: (define (resize-image filename…
Eleno
  • 2,864
  • 3
  • 33
  • 39
5
votes
1 answer

What is the difference between .psd (photoshop) and .xcf (gimp) file types?

What are the technical specifications/capabilities of each file format? Does one type handle certain types of graphics better than the other?
Tone
  • 2,793
  • 6
  • 29
  • 42
5
votes
3 answers

Export all SVG paths with Gimp Python plugin

I want to write a Gimp-Python plugin in order to export all SVG paths from the current image. This seems quite simple but I am stuck with pdb calls, I may not be calling procedures correctly so I need your help. Here is my code : #!/usr/bin/env…
Swe
  • 53
  • 1
  • 7
5
votes
1 answer

Writing a basic PostScript script by hand

I wanted to try and manually code a PostScript file. Why? Why not. From Wikipedia, I copied and pasted their basic Hello World program for PostScript which is: %!PS /Courier % name the desired font 20 selectfont % choose the size…
chiliNUT
  • 18,989
  • 14
  • 66
  • 106
5
votes
1 answer

Resizing screenshots/screen captures for inclusion in Beamer

Sorry, this may or may not be a programming question directly, but I am trying to resize screenshots with Imagemagick and Gimp to include in a Beamer presentation, but it comes out even blurrier than the resizing done by LaTeX. For instance, in…
hatmatrix
  • 42,883
  • 45
  • 137
  • 231
5
votes
1 answer

How to quickly know layer dimensions in Gimp?

Every time I want to know the layer dimensions in Gimp, I open the "Scale layer" dialog to get it. Is there a better way to know this at a glance? May be some configuration option to show it at the bottom/right of the layer name, or in the bottom…
minterior
  • 381
  • 3
  • 6
5
votes
1 answer

use gimp color-to-alpha script in a shell script

I am trying to reproduce the color-to-alpha function gimp offer, which adds a level of transparency depending on the amount of color in a pixel. The reason why I want to know how to use this function from a command line is to apply the function to…
Mtrompe
  • 351
  • 5
  • 15
5
votes
1 answer

GIMP Python-fu exporting file only exports transparent layer

I am having issues saving images in python via GIMP. I can get the image and apply the effects I want, but when I go to save, it only saves one layer and not everything (NOTE: The background is transparent) and because the background is transparent,…
Josh Menzel
  • 2,300
  • 4
  • 22
  • 31
5
votes
1 answer

GIMP Python-fu nested group layers

I can't seem to find any methods for adding a Group Layer to another Group Layer anywhere in the python-fu interface. I've tried to find methods on the Gimp.Layer objects as well but with no luck. How do I add a group layer to another group layer…
Larpon
  • 812
  • 6
  • 19
5
votes
1 answer

String Replace in Gimp Script Fu

I have a Gimp plugin that renames files and I needed a replace function. Unfortunately TinyScheme that Gimp uses does not have a replace function for strings. I searched a lot but couldn't find one that worked as a true string-replace. Answer to…
Isaac
  • 121
  • 8
4
votes
5 answers

Save as on multiple files at once (GIMP)

I have a series of .xcf images which I want to save as .png. I can open each file and save as .png but since there are a lot of images it would take a fair amount of time. Is there a way to convert all images at once, or another way I have to spent…
user8363
  • 1,299
  • 3
  • 13
  • 17