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
933
questions
0
votes
0
answers
22
views
Is there any equivalent to noise reduction in Gimp Python-fu?
I am working to develop a Gimp plug-in to convert images to comics/manga using Python-Fu. The code is working quite well at the moment (I know AI can do the same but coding its own plug-in is free isn'...
1
vote
0
answers
84
views
Colors washed out in cam preview but vibrant in Google Photo, Gimp, Lightroom mobile
My phone (OPPO Reno2) takes photos in "Display P3" color profile (that is, if I open the image in gimp, it asks me if I want to convert it to srgb).
When I edit the image with google photo, ...
0
votes
0
answers
23
views
Replay image transformation
I regularly need to merge 3 or more images into one, where one image is the base and the other images are added as overlays and are transformed to fit the base image using the cage transform tool in ...
-1
votes
1
answer
42
views
Problems getting alpha blending working correctly using GIMP and Pygame [duplicate]
Using this question as a reference, I am trying to display an image where one of the colors in the image is meant to be the alpha channel:
PyGame: Applying transparency to an image with alpha?
My ...
1
vote
0
answers
51
views
What is GIMP's algorithm for generating an optimum palette for indexed images?
GIMP can convert images from RGB mode to Indexed mode through the "Convert Image to Indexed Colors" dialog (Image > Mode > Indexed...). In that dialog, there is an option to generate ...
0
votes
2
answers
88
views
Imagemagick results of +transparent (remove all colors but one) produces color residues
I have images generated. It's pixel-perfect images (no interpolation, 1 pixel=1color, 5 colors only, etc.)
I want to separate each color in different files, so I use ImageMagick CLI commands to obtain ...
0
votes
0
answers
25
views
Python 3: How do I assert that the value of a gobject.GParamSpec is of a particular type?
I'm writing GIMP 2.99 python plugins. All of the arguments in a Gimp Procedure are held as an array of GParamSpec instances. I want to assert that each argument value is the type I expect. My problem ...
0
votes
0
answers
21
views
Gimp Preferences/Folders shows no script folder
Gimp 2.10.36 on Windows 11. Edit/Preferences/Folders shows only a Swap folder and a Temp folder, no Scripts or Plug-ins folder. I don't know where to put my .py script.
I expected to find more ...
0
votes
0
answers
99
views
Edge detection with GIMP/Sobel vs. OpenCV/Sobel
Using the C++ API of OpenCV version 4.9.0 on Linux Ubuntu 22.04, I am trying to automate detection of the multiple store receipts depicted in this first scanned image, copy out the resulting subimages,...
-1
votes
1
answer
42
views
Imagemagick linear invert as in Gimp?
I'd like to LINEAR invert image in Imagemagick with the same output as in Gimp.
Original image:
Original image
Gimp invert:
Gimp invert
Gimp LINEAR invert:
Gimp LINEAR invert
Imagemagick "negate&...
0
votes
0
answers
35
views
How to change the 'color temperature' in script-fu/scheme?
devs I'm working over a C# project and I execute gimp-console.exe to execute scripts and I put some paths (the input and the output image) as parameters to process some functions to this images.
...
0
votes
0
answers
48
views
"graphicsmagick identify" results in error "Backing store not supported " for a lot of jpegs, how to fix?
I'm using a tool to generate a photo album from my photo collection.
This tool uses GraphicsMagick under the hood to generate thumbnails of the photos. Unfortunately , GraphicsMagick gives an error on ...
0
votes
0
answers
34
views
GEGL Library Installation on Windows
I am new in image processing field, and I want to use GEGL to try things on Windows, I clone these libraries from Gnome:
gegl.
babl.
glib.
When I opened the examples in GEGLE "hello-world.c&...
0
votes
1
answer
45
views
GIMP newly adder RGBA layer in Python-Fu, trouble getting new layer added behind source image to be transparent
I have several images that I'm trying to use GIMP Python-Fu to process. What I am trying to do is:
open a *.png with transparency
create a new layer that is transparent and inject it below the ...
0
votes
0
answers
89
views
Gimp Scheme Script. How can I keep the same file name when exporting the images from Gimp
I want to keep the same file names when the script is exporting each file. Tried many things but nothing worked. When it is exporting the end file name is image00001. I want it to be the same as it is ...
0
votes
1
answer
94
views
How to change background color to white in GIMP?
When I build model rockets, I always take a photo scan of the decals with my Canon multi-function printer/scanner. The decals usually have a light blue background. If I want to make a copy of those ...
0
votes
1
answer
93
views
GIMP - Get a point within selection from python script
My script runs on a fuzzy selected area. I need to get the color value of the selected area from within python-fu script. This could be the average value of the selection area or, better, the color ...
0
votes
1
answer
151
views
Unity Sprite Colors Wrong, But Compression Is None, And Filter Mode Is Point
Problem
I know that Unity sprites have compression and filtering applied.
I have already disabled this on the images.
See below.
I have edited these in Gimp and when I export and import them into ...
0
votes
0
answers
117
views
Weylus for windows setup
I was trying to use my galaxy tab s4 as graphic tablet without paying, and I used weylus to use it. I found the version that supports tilt and pressure on windows from https://github.com/kotaewing/...
0
votes
0
answers
275
views
PPM image file not opening in GIMP
Tried to write a simple PPM image file in C++, here is the code:
#include <iostream>
const int image_height = 256, image_width = 256;
int main()
{
std::cout << "P3\n" << ...
-1
votes
1
answer
37
views
GIMP does not unload closed image from memory
GIMP exported an image that was closed and not show in GIMP
I need a little bit of help!
I have found that GIMP does not always remove closed images from its working memory even if they are not shown.
...
1
vote
0
answers
38
views
Algorithm of HDR viewer of GIMP, Photoshop or anything similiar
I am in search of an algorithm capable of displaying an HDR image on an 8-bit screen. Essentially, I require an algorithm that converts HDR to LDR. Specifically, I am aiming to achieve results ...
0
votes
1
answer
47
views
Is there a way to change the active tool assigned to a device using Script-Fu?
I want to create a toggle key to switch between two frequently used tools.
I thought I could switch the active tool using "gimp-context-set-paint-method," but it seems that this only changes ...
0
votes
1
answer
89
views
How to properly use file_raw_save via Python (GIMP PDB Procedure)
While writing a GIMP 2.0 plugin via Python and gimpfu, I've run into pdb procedures such as file_raw_save(...). There arguments are laid out in the GIMP Procedure Browser (Help->Procedure Browser). ...
1
vote
0
answers
52
views
GIMP script-fu to ImageMagic conversion
I have written the following GIMP script-fu function to remove lens distortion from an image using the lens-distortion-plugin. I execute this script through a command line function from my main python ...
1
vote
1
answer
36
views
How to use brush jitter in a GIMP Python script
In the brush options in the GIMP UI there is "jitter".
How can I use that in a GIMP python script?.
I can't find the equivalent context setting in the procedure browser.
Would I have to ...
1
vote
1
answer
388
views
Python-fu: How to batch process color-to-alpha and opacity threshold
I'm trying to batch process images in GIMP 2.10 using a Python-Fu script. The script should apply the following transformations to each image in a folder:
color to alpha with RGB value (246, 246, 246)...
0
votes
0
answers
22
views
Python - Tkinter, how do I correctly use the PhotoImage in this situation? [duplicate]
How do I correctly use the label to display an image in tkinter since every time the window is opened, the image is displayed, but it appears completely white, not showing its relevant content?
I have ...
1
vote
0
answers
138
views
GIMP: Permission Denied error when saving with file_png_save2, but not when saving through File->Export
I'm trying to write a script to automate some things for a project I'm working on, and one of the steps is saving a file as a png. I'm using file_png_save2. When running the script, it errors out with ...
-1
votes
1
answer
78
views
Problem saving WebP with Gimp Python script
I have this script to automate resizing and saving into WebP format, but I have something set wrong:
!/usr/bin/env python
from gimpfu import *
def automate_edit(image, drawable, new_width, new_height)...
0
votes
1
answer
73
views
So weir in script-fu, cadr function not work
> (cadr '(1 2 3)) Error: eval: unbound variable: cadr
I think who are familiar with script-fu should think as i am, this is so weir. Just few day ago, i ran some thing like "cadr" or even ...
-1
votes
1
answer
41
views
add text with black color to gimp image
When I try to add a text to image with GIMP, the color of text not clear! How can I insert text with full black color?
0
votes
1
answer
71
views
How generate scriptfu scheme code in GIMP?
Gimp has script-fu for scripting code in Scheme. But i don't know does ít has the reverse function? It mean, when i draw or do something, can it generate scheme code or any language parallel with that ...
-2
votes
1
answer
63
views
GIMP 2.10 Lost Tool box
Somehow, through a series of mysterious keystrokes, the toolbox has disappeared from the side columns of Gimp. I have like on google and none of the answers seem to help. Is there a way to look at ...
0
votes
1
answer
56
views
Attempting to script the addition of a small logo on top of a QR code using GIMP and Script-Fu. Second image doesn't show
I'm looking to automate the addition of a small PNG at the centre of a much larger PNG using GIMP (2.8) and its Script-Fu language. The first image provided in the procedure call always shows, but the ...
1
vote
1
answer
106
views
Create white background with gimpfu
I want to create a white background in my gimpfu plugin. I found the option to fill a drawable by using pdb.gimp_drawable_fill(drawable, 2) but there I have to select a drawable and the drawable fills ...
1
vote
1
answer
46
views
Remembering user inputted settings between GIMP sessions
I'm very new to python and even newer to creating plug-ins for gimp so I've been having issues with trying to save specific values between sessions. More specifically I want to save two folder ...
-1
votes
1
answer
47
views
Ways to reduce image size for wordpress without reducing quality
I am building a WordPress website, and the website runs perfectly, but the images don't load. I've reduced the image sizes from megabytes to kilobytes, but the images still do not load.
I used GIMP ...
0
votes
0
answers
45
views
Gimp gimp_image_convert_color_profile_from_file does not work
I'm trying to automate some task with gimp but it seems so that the color profile converting does not work.
pdb.gimp_image_convert_color_profile_from_file(image, r"d:\Todelete\Input\eciRGB v2.icc&...
0
votes
1
answer
132
views
Change gradient color for part of the picture to the other gradient
I have part of the picture that was drawn primarily using a certain linear gradient starting with white and ending with certain color, simplest example - think of a yellow ball on the black surface ...
1
vote
0
answers
180
views
Flattening Transparencies - Gimp, Scribus, and DriveThruRPG
I used Scribus to create a black and white PDF, including images prepared with Gimp. I submitted the PDF to DriveThruRPG for their print on demand service and it was initially rejected by their ...
0
votes
1
answer
95
views
Is there a way to make text italic with Python-Fu for GIMP?
My script changes text in a text layer, but doing that changes the text from italic to normal text. Is there a way to not make it change; or to change it back afterwards?
I looked in the command ...
0
votes
0
answers
60
views
Achieving an effect similar to GIMP's "Supernova" on HTML canvas?
I know the HTML canvas can achieve some pretty nice effects when using different composition modes, but I can't figure out how to achieve an effect similar to GIMP's Supernova:
I'm not sure whether ...
0
votes
0
answers
81
views
How do I get my plug-in to work with BIMP?
This plug-in works fine when I run it by itself, but when I add it as a procedure to Batch Image Manipulation Plugin (BIMP), it only outputs the image as 412x316 without the borders that I want at ...
0
votes
1
answer
2k
views
Use GIMP to resize image in one layer only
This is my set up. I have 2 layers with transparency (I don't know if transparency matters here). Layers are the same size, 5x7 inches. Each layer has their image (say I draw a square on it and a ...
0
votes
1
answer
177
views
Is it possible to run or use the GIMP CLI from a Node.js server?
I know that GIMP and a lot of it's plugins can be run from a command line interface. I am wondering if it is possible to run GIMP processing from a node server. If not directly, maybe indirectly (two ...
0
votes
1
answer
175
views
How to draw a colored circle around a part of an image with gimp?
The question is very simple. I just want to draw a simple circle around some part of an image with mouse. Not a fancy circle. It can be not at all a complete circle. I just want to circle around some ...
0
votes
1
answer
41
views
Gimp Python: possible to envoke baump-map interactively
I want to envoke GIMP bump-map from a python script interactively.
Is that possible?
If so: how?
GIMP Version 2.10.
The parameters list has a parameter for interactive use, but it seems not to be used?...
0
votes
1
answer
235
views
Convert C-Source image dump from RGB565 into RGB888
I have created with GIMP a C-Source image dump like the following:
/* GIMP RGBA C-Source image dump (example.c) */
static const struct {
guint width;
guint height;
guint ...
1
vote
1
answer
647
views
How can I export an image with Script-Fu to the folder with the GIMP file?
My Script works, but the exported file will be saved in my user folder. How can I automatically export the .png to the folder with my GIMP file?
(define (script-fu-biz-scale Image Layer Drawable)
(...