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

MacPorts Build of Gimp ends prematurely

I wanted to install The Gimp on my mac. It's not in the HomeBrew tree, so I decided to install it with MacPorts, which I've never used before, and installed today just to build The Gimp. I used the command recommended at…
saulspatz
  • 5,011
  • 5
  • 36
  • 47
0
votes
1 answer

Loading in python png image made in gimp as rgb image

I created my own image in gimp made out of two layers. Mode was set as follows: Image->mode->rgb. Than I saved that as png. Afterwards, I tried to load this image in python script using PIL.Image. But unfortunately, what was loaded was image with…
user3603644
  • 95
  • 1
  • 7
0
votes
1 answer

Batch fit image in Linux (e.g. GIMP)

How can I batch fit an image under Linux? Please note that I explicitly ask for batch fitting images independent of the actual orientation of the image (e.g. always fit to 800x600 px max, taken into account different orientations of the…
Andreas
  • 736
  • 6
  • 15
0
votes
1 answer

script-fu multiplication : not enought argument

simple multiplication is failling in my script-fu. the folowing code (print "hello") (print (/ 4 3)) (print (* 3 4)) (print "world") Gives : "hello" 1,333333333.0 Error: ( : 1) not enough arguments Any idea…
Patrice
  • 1,404
  • 1
  • 14
  • 27
0
votes
1 answer

Gimp "Text to Path" on Strange Shapes

I'm trying to duplicate an 1800's style sign using Gimp, and am really struggling with text to path. Here's an example image: http://designobserver.com/media/images/02.02.14.17_525.jpg I've been using Gimp for years, but when it comes to making text…
Jason Silver
  • 527
  • 7
  • 23
0
votes
1 answer

Inset selection in gimp? Reverse drop-shadow?

I'm wondering how to achieve this effect that Apple uses. It looks as though the button is depressed into the bar, can't figure out how to do the same effect for my graphics. Thanks! alt text…
DevDevDev
  • 5,107
  • 7
  • 55
  • 87
0
votes
2 answers

How to resize icon to 48x48 from 1001 × 1506 in gimp?

apologize for this really basic question, but I can't find a correct way in resizing icons. I want to resize this image with 1001x1506 px (300 dpi) to 48x48 px (160 dpi) for my icon in android app. I'm using gimp as my editor and I'm not used to…
chkm8
  • 1,302
  • 1
  • 13
  • 34
0
votes
1 answer

Error when calling gimp-drawable-set-pixel in gimp's python console

I'm typing this code directly into Gimp's Python Console: img=gimp.image_list()[0] drw = pdb.gimp_image_active_drawable(img) gimp-drawable-set-pixel(drw,x,y,3,[0xff,0x00,0x00]) and it's yeilding this error after calling the gimp-drawable-set-pixel…
Tyzoid
  • 1,072
  • 13
  • 31
0
votes
1 answer

Gimp-Fu/Tinyscheme: unquoting symbols in function-defining macro

I'm attempting to write a tinyscheme macro to define four mostly-identical procedures in GIMP: (macro (define-layer-moving-function body) (let* ( (func-name (cadr body)) (direction (caddr body)) …
mugwhump
  • 90
  • 1
  • 7
0
votes
2 answers

Add a line feed to a python gimp 2.8.4 script

I have a Python Gimp script that works well, but have one issue: When I need to place multiple lines on an image, I have to create two separate text layers. #Sample of text parameter xml file
rtsnhth
  • 87
  • 1
  • 11
0
votes
1 answer

script-fu invalid number of arguments

I want to create an image like notebooke paper, and I thought it is easy if the section of drawing lines is automated. In order to make it, I decided to use gimp's function named 'gimp-rect-select' and specify the small height value. I…
0
votes
1 answer

lisp iterate through list

I just started GIMP script-fu scripting yesterday for a script I need but I have no idea how automate the adding of the layers in the local variables and calling the function for adding the layers to the image. I tried iterating over lists but…
YannisDC
  • 207
  • 1
  • 2
  • 9
0
votes
0 answers

"bad src image pointer" after read frame of video in OpenCV

VideoCapture cap; cap.open("Path_to_directory\\%03d.jpg"); for (int i = 0; i < number_of_frames; ++i) { Mat frame; cap >> frame; //... } In the line "cap >> frame;" "bad src image pointer" is printed to console.…
0
votes
1 answer

Lytro-like functionality from RAW images?

I have a bunch of RAW images (.cr2) and a degree is amateur geekery. I want to know if there's a software/plugin/tool/piece of code that can help me change the point of focus of these images much like we can for images taken with a Lytro camera. I…
Nitin Khanna
  • 53
  • 1
  • 10
0
votes
1 answer

Gimp from command line

I used Gimp to export a PNG to another without color values from transparent pixels. Is there ay way to do the same from the command line? I'm going to use this script from a php. The option in Gimp UI is "Save color values from transparent pixels"…
user47583
  • 3
  • 1