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

gimp preset "fixed: aspect ratio" property for a selection

I need a script that acts as a shortcut for: making a selection setting the selection property "Fixed" to value "Aspect ratio" (that is: proportions of selection should be fixed) The following line does the selection part:…
AgostinoX
  • 7,477
  • 20
  • 77
  • 137
0
votes
1 answer

Gimp (Scheme) How do you script / automate "Fit Image in Window"?

How do you script this menu action in Gimp (Scheme)? View -> Zoom -> Fit Image in Window I haven't found an appropriate method in the procedure browser.
Black Orchid
  • 111
  • 1
  • 9
0
votes
2 answers

Is there a way to repeat the image multiple times as tiles in android?

I want to make a floor like effect using a single image in android, somethig lake the Tile effect in GIMP. For example have a square already on my app and then create an image that has that square a lot of thimesso that it looks at the end something…
0
votes
1 answer

Move tool in Gimp

Why does the move tool always default to moving a path? I've had this behaviour across a number of versions of Gimp. It doesn't seem sensible when layers is the first option. Is there a way to fix this/force it to default to layers? Thanks.
garrettlynchirl
  • 790
  • 8
  • 23
0
votes
2 answers

how to scale an image with gimp and save the actual scale and all the white space

there are a ton of scaling instructions for GIMP but all of them tell you to scale and save easy peasy. I feel like I'm taking crazy pills. This is what my save or export generates: How can I simply export a selection? Shouldn't the GIMP…
toxUP
  • 103
  • 2
  • 10
0
votes
1 answer

Gimp Batch Layer Automation

I am currently using GIMP to layer two photos into one photo file for a work project. I have over 7000 107x80 JPG images that I need to place on a 160 x 100 PNG background that has a logo on it and saved as the JPG file name. The 107x80 JPG needs to…
KN2017
  • 11
  • 1
0
votes
2 answers

Linux batch (gimp, imagemagick) add background image to series of transparent pngs

is it possible to add a different background image to a series of transparent pngs? Like: convert sourceimage.png -background BackgroundPicture -flatten destinationimage.png Of course the background image should be lowered to bottom of the…
0
votes
1 answer

Open source tool to create a logo using google fonts / Lato

I am looking for an open source tool that I can use to create a text based logo. I would like to use the Lato font from the Google Fonts family. I have tried Gimp and Pencil Project but neither worked. Any suggestions / recommendations?
techwestcoastsfosea
  • 686
  • 3
  • 10
  • 21
0
votes
2 answers

GIMP Filter in C#

I'm trying all day long to get this code run, but no chance. I would like to execute a GIMP filter on an image and save it later to a certain path. With this code: string choosenFile = "D:\\here\\is\\the\\image"; string gimpFile =…
Viktoria
  • 533
  • 2
  • 7
  • 24
0
votes
2 answers

Scale image layer uniformly using python-fu in Gimp

My goal is scaling an image using python-fu library for gimp in a uniform way. It means specifying width/height should be enough for scaling. Gimp should change height/width accordingly. In Gimp GUI it's set with the marked toggle: I'm using the…
rok
  • 9,403
  • 17
  • 70
  • 126
0
votes
1 answer

Run linux command in python 3

Running the following command in linux bash succeeds: gimp --no-interface -b '(python-fu-scale RUN-NONINTERACTIVE 0 0 "img.jpg")' -b '(gimp-quit 0)' Output: batch command executed successfully is printed and child process exits Running it with…
rok
  • 9,403
  • 17
  • 70
  • 126
0
votes
1 answer

GIMP Python-Fu script does not run with more than 4 parameters

I am trying to write a Python-Fu plugin for GIMP, but adding more than 4 input parameters (including the Image and Drawable parameters) will cause the script to not run at all. I have tried this with various input parameter types and they all…
MrKagouris
  • 106
  • 1
  • 8
0
votes
1 answer

Gimp, python-fu: RuntimeError: execution error in pdb.gimp_image_merge_down

My goal is to put one image over the other and save the resulting image as jpeg file. The first one is new one, it has 450x300 dimension and white background. The second one is loaded from file and its visible part is added as a layer to the…
rok
  • 9,403
  • 17
  • 70
  • 126
0
votes
1 answer

Error: ( : 1) Invalid number of arguments for python-fu command line execution

I have added the following python script to /usr/lib/gimp/2.0/plug-ins folder #!/usr/bin/python from gimpfu import * def scale(imageName): pass register( "my", "", "", "", "", "2017", "/Image/Hi..", …
rok
  • 9,403
  • 17
  • 70
  • 126
0
votes
0 answers

script-fu variables set from cond but treated as unset

I'm trying to set up a script for raw photos, to allow me to add two copies of the existing file (all taken from ufraw), at different exposures so I can recover shadow and highlight detail. The part for the shadow file is now working, hard-coded to…