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
0
votes
1 answer

How i can find names of all available GIMP commands/tools.

I need to have a list of all available tools/commands name in GIMP(http://www.gimp.org/) for my research project.I have googled and also checked the source code but couldn't find any file that contains all name. Can anyone suggest how can i get that…
0
votes
1 answer

remove pencil on uneven background

I have this picture: http://fc07.deviantart.net/fs16/i/2007/124/a/f/Hand_and_Nib_Pen_Stock_2_by_austringer.jpg and would like to remove the pencil lines on the top of the paper with Gimp 2.8.4. how do I best go about this? I only have the jpg i.e.…
stdcerr
  • 13,725
  • 25
  • 71
  • 128
0
votes
1 answer

Why is Gimp complaining with "Premature end of file"?

I'm trying to construct a ppm file that will give me the image of this flag: It is a 1200 (columns) by 600 (rows) image and the width of the vertical red bar is 300 columns. I already wrote the code and it compiled fine, but when I try to view the…
user2387766
0
votes
2 answers

Firefox displaying image colours incorrectly

I have a website that incorporates a logo in to the header. This logo has a background that is the same colour as the background of the header, yet in Firefox the colour is different. I can find various articles alluding that the 'colour profile'…
David Gard
  • 11,225
  • 36
  • 115
  • 227
0
votes
1 answer

How can I create a gif without losing any image quality

So I have some pictures that i need to crop and save. I crop my images into circles and save them to .gif format so I don't have that white square around my image. when using GIMP, I just follow the default settings. my image before it is…
Nicholas Aysen
  • 568
  • 3
  • 18
  • 40
0
votes
0 answers

How to control the pencil in gimp

I'm writing a script in gimp and I want to place several random points on the screen. I placed in my (python) script the two following lines gimp.pdb.gimp_context_set_brush_size(5.0) gimp.pdb.gimp_pencil(drawable,2,p) But this didn't have the…
Yotam
  • 10,295
  • 30
  • 88
  • 128
0
votes
3 answers

Gimp- How can I use a script (``solid-noise``) inside another script?

I want to create a script that call a set of other scripts and run them with specific parameters. Specifically for now, I want to run the solid-noise cloud rendered. I created a script and I call the solid-noise script using …
Yotam
  • 10,295
  • 30
  • 88
  • 128
0
votes
2 answers

Why can't I add a variable to GIMP plugin?

Ok, I am trying to develop a small plugin for gimp that makes a bitmap font. For some reason now that I added the following code it won't work. current_cell_x = 0 current_cell_y = 0 x_pos = current_cell_x * cwidth y_pos = current_cell_y *…
Zeveso
  • 1,274
  • 3
  • 21
  • 41
0
votes
1 answer

Plugins usually don't work, how do I debug?

I am trying to write a plugin that will create a bitmap font. However, this is very frustrating to learn... while I am not familiar with python, it is not that hard to pick up and have not had problems with it outside of GIMP. Copied some of the…
Zeveso
  • 1,274
  • 3
  • 21
  • 41
0
votes
1 answer

How do I draw pixels with GIMP Python's gimp-drawable-set-pixel?

Currently I have this code: def my_script_function(image, drawable, text_value, int_value) : pixel = [0,0, 255, 255] for i in range(1,1600): for j in range(1,1600): pdb.gimp_drawable_set_pixel(drawable, i, j, 4, pixel) …
JVE999
  • 3,327
  • 10
  • 54
  • 89
0
votes
1 answer

GIMP:Script-Fu-script error

I try batch-processing some files with GIMP. Here is the script: (define (script-fu-batch-sofu globexp) (define (sofu-trans-img n f) (let* ((fname (car f)) (img (car (gimp-file-load 1 fname fname)))) (gimp-image-undo-disable img) (gimp-fuzzy-select…
Martin Weber
  • 3,892
  • 4
  • 20
  • 23
0
votes
2 answers

customize the logo image dosbox in gui "dosbox_splash.h"

i need customize the logo image dosbox in gui "dosbox_splash.h", but the format is .h like this --- static const struct { unsigned int width; unsigned int height; unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */ unsigned char …
Napster
  • 23
  • 5
0
votes
1 answer

Why is .ico preferred over .png for favicons?

I just noticed that I inadvertently saved my favicon as a png. and nothing bad happened. What is gained by saving as .ico. This is obviously the way it is done ( as I've looked at many favicon links in other web-apps ), but I'm trying to understand…
0
votes
2 answers

Replacing Text in PNG Image With Gimp 2

I've a transparent PNG image i'm using for a button on a web page. I'd like to be able to replace the images text with some other text using Gimp 2. Any idea's how i can easily achieve this? I'm a complete novice to GIMP!
user676567
  • 1,119
  • 9
  • 20
  • 39
0
votes
1 answer

script-fu script not load image under gimp 2.0

I try to make working this script with gimp 2.8 . I don't see script-fu-register in Procedure Browser). I try running with RUN-INTERACTIVE and RUN-NONINTERACTIVE... this script: (define (script-fu-cut-height filename outputfilename myheight) …