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
10
votes
4 answers

resize image without losing quality with Gimp

i have a bunch of images which are way too big i need to decrease their size from 30 kb to 10 or 5 kb without loosing quality. I tried to change the dpi and pixels with no succeed. The images got blurred, and as they have text i can't read anything…
madcoderz
  • 4,423
  • 10
  • 47
  • 74
10
votes
1 answer

cannot change the grid's spacing and offset in GIMP

I'm changing the grid's configuration in GIMP (Preferences -> Default grid). I've increased the spacing from original 10 px to 40px, and the offset as well (from 0 to 10 px). But the grid appearance in the image just stays the same - still 10 x 10…
Pontiac_CZ
  • 619
  • 1
  • 6
  • 13
10
votes
5 answers

Script fu 'unbound variable' error on arguments

So i tried to run the batch code from this tutorial: http://www.gimp.org/tutorials/Basic_Batch/ I copied and saved this to the .gimp-2.8 scripts folder (define (batch-unsharp-mask pattern radius …
Joe Staines
  • 301
  • 1
  • 3
  • 11
9
votes
2 answers

A way to convert PSD format to something Gimp can read

I have a bunch of PSD files (and more to come) and I want to get them into a format I can work with. I have had (some) success reading PSDs with Gimp before but these files won't read properly. Is there a way to convert PSDs to XCF? I have tried…
Matthew
  • 8,183
  • 10
  • 37
  • 65
9
votes
2 answers

What interpolation is best for image rotation?

I have some images to rotate. I must rotate them (each by different angle) with as little as possible image artifacts (e.g. blurring) that occur during image rotation (due to interpolation). At the moment I have GIMP 2.6 that has Cubic and…
Marcin
  • 215,873
  • 14
  • 235
  • 294
9
votes
2 answers

How to calculate mean average color in GIMP?

How to calculate mean average color in GIMP? I have some photo and want to calculate average color - how can I do it?
Chameleon
  • 9,722
  • 16
  • 65
  • 127
8
votes
6 answers

How do I do the equivalent of Gimp's Colors, Auto, White Balance in Python-Fu?

the only function I can find is : gimp-color-balance, which takes the applicable parameters : preserve-lum(osity), cyan-red, magenta-green, and yellow-blue. I'm not sure what values to pass for these parameters to duplicate the menu option in the…
Bryan Dunphy
  • 799
  • 1
  • 10
  • 22
8
votes
3 answers

Role of color profile in graphics program

I think I understand what color profiles are. I do not understand, what is the difference in manipulating photo for example in photoshop in 16bpp sRGB and 16bpp Adobe RGB. My monitor can only show me sRGB. Is there any difference in…
Mariusz Jaskółka
  • 4,137
  • 2
  • 21
  • 47
8
votes
1 answer

Gimp: How can I get the coordinates of path tool points?

I am new to gimp python-fu programming I have spent my 4 days WITH NO LUCK to figure out which is the best appropriate functions to use in order to get the coordinates of drawn path and show the output on gtk message box like the following…
Mahdi Alkhatib
  • 1,954
  • 1
  • 29
  • 43
8
votes
2 answers

Open *.data files as greyscale images in GIMP

I am trying to open a greyscale image in *.data format in GIMP, but the only options that I get are multichannel (RGB, RGB alpha, etc.). Is there a way to change this? Thanks.
Ernesto
  • 199
  • 2
  • 9
7
votes
1 answer

How to get a list of files (*. jpg) from all folders?

How do I get a list of files (*.jpg) from all folders, using Script-FU in GIMP? (let* ((filelist (cadr (file-glob pattern 1))) This only gets files from the current folder.
Smirnov
  • 153
  • 1
  • 1
  • 9
7
votes
1 answer

Gimp: can´t edit image due to "GEGL-Error"

Gimp(2.10 on Windows) is throwing a "GEGL-error" when i try to edit an image. Some minutes ago i was able to edit a image with Gimp, but out of the sudden, Gimp is refusing every editing, claiming that This operation has no editable…
Coliban
  • 601
  • 2
  • 9
  • 24
7
votes
2 answers

How do I write a custom auto-crop script using the GIMP?

I have a bunch of screen shots and I'd like to crop out the window border. I would like to crop them all using a script. I have access to the GIMP, but not photoshop so I assumed that the GIMP would be the best tool to use. I have not scripted with…
Stainsor
  • 205
  • 1
  • 3
  • 8
7
votes
2 answers

OpenCV's Sobel filter - why does it look so bad, especially compared to Gimp?

I'm trying to rebuild some preprocessing I have done before in Gimp, using OpenCV. The first stage is a Sobel filter for edge detection. It works very well in Gimp: Now here is my attempt with OpenCV: opencv_imgproc.Sobel(/* src = */ scaled, /* dst…
0__
  • 66,707
  • 21
  • 171
  • 266
7
votes
1 answer

GIMP - Scripting a canvas resize

Just started using GIMP today. When I resize the canvas manually in GIMP (so that it's smaller than the image size) it lets me move the image around so that I can "change" the viewable area. How do I replicate this in a script? In other words, I…
zdyn
  • 2,155
  • 1
  • 15
  • 17
1 2
3
61 62