Welcome, Guest |
You have to register before you can post on our site.
|
|
|
gimp-file-load color profile |
Posted by: 6vfde - 11-20-2022, 01:39 AM - Forum: Scripting questions
- Replies (4)
|
 |
Hi!
I'm new to the forum and scripting, and have little GIMP experience.
I am working on my first python-fu script, which opens jpg files, changes them, and saves to new jpg files.
How one would load a jpg file while preserving its original 'sRGB' color space? When I open the file through the GUI, GIMP asks me if I want to keep it or convert to 'GIMP built-in sRGB'. However, when my script loads the file with pdb.gimp_file_load(), It just converts it automatically.
I'm running GIMP 2.10 on Debian.
Thanks a lot!
|
|
|
Overwriting 'software' EXIF tag |
Posted by: 6vfde - 11-20-2022, 01:27 AM - Forum: Scripting questions
- Replies (2)
|
 |
Hi!
I'm new to the forum and scripting, and have little GIMP experience.
I am working on my first python-fu script, which opens jpg files, changes them, and saves to new jpg files.
Is there a way to save a file with pdb.file_jpeg_save(), while overwriting the 'software' exif tag?
Even though I set the tag with pdb.gimp_image_set_metadata(), the resulting file has 'GIMP 2.10.32' as its value.
I'm running GIMP on Debian.
Thanks a lot!
|
|
|
Setting GTK Dialog default answers |
Posted by: cjsmall - 11-18-2022, 11:59 PM - Forum: General questions
- Replies (4)
|
 |
I'm sure that due to an upgrade from GTK2 to GTK3, the default responses (i.e., the active button) when a pop-up dialog displays changed between GIMP 2.8 and 2.10. Even after a few years, these changes still bother me. Is there any way, external to the GIMP code itself, that the default responses for a given dialog can be set? I'm hoping that there is some kind of external file where this might be set. I'm just not familiar enough with the GTK internals to know if this is possible or not.
Thanks for any insights.
|
|
|
Adding/Editing transparency in an indexed PNG |
Posted by: out-of-mind - 11-18-2022, 04:23 PM - Forum: General questions
- Replies (3)
|
 |
Hello,
I have an indexed PNG and want to edit the transparency of it - my problem: Transparency is either 0% or 100%
What I'd like to have: I'd like to add a transparency value to each of the 255 indexed colours - so colour 1 is totally transparent, and the others transparency should be set to something between 50% and 90% depending on their brightness (white -> 90%, black -> 50% or something similar) - (I wouldn't mind to edit the 255 colours by hand if necessary).
I did something like this few years ago, but can't reconstruct how I did it - though I ended up with a 24 bit per Pixel PNG, so maybe it's not possible to have an indexed PNG with varying degrees of transparency!?
If I open the indexed PNG it shows two channels, one with the image information and the other with transparency information is a black or transparent thing with nothing inbetween (seems to be just 1 bit of info per pixel) - so maybe it's possible to change that part (and have 1 byte per pixel as well).
Thanks for any hints.
|
|
|
Surface Laptop Studio pen not working |
Posted by: CubeGamer647 - 11-17-2022, 04:27 PM - Forum: General questions
- Replies (1)
|
 |
So I recently got a surface laptop studio and the pen to go with it, it's a touchscreen and it's specifically designed for drawing, but it would seem that gimp can't distinguish the pen from the cursor, and thus it's not detecting any pressure, nor does the other side function as a second pen. Any way to fix this?
|
|
|
|