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

Remove all but certain colors (color range) in an image?

I have a grayscale image, which has a certain wanted pattern of colours + some unwanted colors. The colors I want to leave are (rgb): 000 666 121212 181818 242424 303030 363636 424242 As you can see, there's a pattern. Umfortunately there are some…
0
votes
1 answer

Using the cairo lib inside a gimp plugin

When writing a plugin for gimp, is it possible to use the cairo library to draw some shapes. I saw there is a function like cairo_surface_t* s= ::cairo_image_surface_create_for_data ( _rgn->data, …
Pierre
  • 13
  • 4
0
votes
1 answer

How run multiple consecutive GIMP batch commands without quitting GIMP for each one?

Is there a way to run these GIMP batch commands from a bash shell script or python script one right after another without quitting GIMP after each one? #!/bin/bash gimp -i -b '(python-fu-dgm-batch-create RUN-NONINTERACTIVE "ABC3-" "dgmconfig.xml"…
rtsnhth
  • 87
  • 1
  • 11
0
votes
1 answer

Gimp Settings to Create a Tintable Icon in iOS

I have a PNG file that's an arrow that I'd like to use as an icon in an iOS app. I've dropped other PNG files into Xcode and they work fine as tintable UIButton images using this line as an example: [self.backButton setTintColor:[UIColor…
Adrian
  • 16,233
  • 18
  • 112
  • 180
0
votes
0 answers

R - Convert raster to RGB image for use in photoshop or GIMP

I have some landsat 8 data that I would like to turn into a .png (or other lossless RGB) image file. Although I am very familiar with the raster package, I can't figure out how to write out an image without the georeferencing header information…
mmann1123
  • 5,031
  • 7
  • 41
  • 49
0
votes
2 answers

Convert SVG polygon to an open curve

Let's consider the simple following image in its SVG representation (running the code snippet will display it):
user4230594
0
votes
0 answers

Remove Image From Header

I have a header, left side is a picture logo, and the right side is a few bars and address/phone number. How can I remove the logo from the left side while keeping all the colors/info on the right side?
0
votes
0 answers

What's the pattern of the noise curves in these captcha images?

I want to mimic and reproduce the noise curves in the captcha images below. It seems the curve was generated by a brush on a random curve path. The pattern of the path is like but not simple sin/cos function or a Bessel function. So,…
nn0p
  • 1,189
  • 12
  • 28
0
votes
0 answers

Gimp Plugin: Get GImP drawable resolution

I m trying to get image resolution in a plugin I m writing. But when I call resolution function the plugin crashes saying image does not exist..... But I can access the drawble, please tell if there us any way to get resolution throuh GimpDrawable
Nouman Tahir
  • 819
  • 1
  • 9
  • 26
0
votes
1 answer

Scale down large image and keep the quality

I have one huge logo with dimensions 1770x1770 and need to scale it down to 80x80. The logo is not complicated and shouldn't loose quality but when I scale it down, it looks really bad, quality is drastically decreased and text is not readable at…
user3339562
  • 1,325
  • 4
  • 18
  • 34
0
votes
1 answer

Converting images to .xcf format

Is it possible to convert an image, or batch of images, to a .xcf or .psd file? Using ImageMagick's convert tool didn't work, but so far my attempts to look at doing this using gimp from the command line have been unsuccessful.
hellocatfood
  • 262
  • 2
  • 13
0
votes
2 answers

Batch convert DDS file to DDS without mipmaps

I have a Mount & Blade: Warband mod called 1257 AD. The mod itself is great, but all the textures have to be resaved to remove mipmaps from dds files, to remove glitches on GNU/Linux. And of course, I could do this manually, but it will took a lot…
user4511836
0
votes
2 answers

Creating a multi layered psd file with "editable text" using command line

I am trying to create a PSD file using command line (linux/osx). Example: I have 5 blocks of text "hello" "this" "is" "an" "example" I need a way to take these 5 blocks of text and generate a psd that will have 5 different layers for each text…
0
votes
3 answers

Replace mouse click for function key in Gimp

Is there a way to setup Gimp to use a held key (e.g control or alt) to do the same as mouse click?
Marinho Brandão
  • 637
  • 1
  • 9
  • 30
0
votes
2 answers

Gimp - The current image is not passed as parameter to my plug-in function

I have this function def enumerategrid(image, width, height, tcolor, theight, font, startfrom) And have it registered: gimpfu.register( proc_name="enumerategrid_plugin-pdb", blurb="Enumera rejillas en una imagen", help="Enumera rejillas…
shackra
  • 277
  • 3
  • 16
  • 56