Welcome, Guest |
You have to register before you can post on our site.
|
|
|
Get list of distinct pixel RGB values |
Posted by: thetalkietoaster - 03-16-2023, 02:00 PM - Forum: Scripting questions
- Replies (3)
|
 |
Hi all,
I'm attempting to write a python script that palette swaps an un-indexed image, as sample colorize doesn't quite seem to have a way to force zero interpolation between colours.
I've got code that iterates across a pixel region pixel-by-pixel using the RowIterator from the colorxhtml.py script, finds the unique colours, arranges them by brightness, then uses gimp_image_select_color and gimp_edit_bucket_fill to replace the colours from drawable 1 with the colours from drawable 2, exactly, in order. All good.
The problem is iterating across the drawables takes way longer than it should - about 30 seconds for a ~250x250px layer. That's a bit much. Is there a way to get a list of unique pixel RGB values easily (ignoring transparency)? The histogram functions seem to work on individual channels.
I guess I could do a nested histogram in 1 channel, select areas for each of the values it took, then histogram each of those sub-areas in the next channel, then repeat again, but that seems like it'd be even less efficient!
Edit: Argh, sorry, I meant to post this in scripting! I don't seem to have the rights to delete it and repost, apologies.
|
|
|
Auto update |
Posted by: oldePole - 03-14-2023, 09:10 PM - Forum: Older Gimp versions (2.8, 2.6....)
- Replies (6)
|
 |
How does one disable the auto update in Gimp 2.8?
I like 2.8. I know where everything that I use is. I DON"T want to take the time to learn where everything moved to.
If at some time I need a feature in Gimp 10 then at that time I will update to that version, until that time I'm quite happy
with the version I'm trying to run.
Thank You
Oldepole
|
|
|
Why my Webp images are not transparent in Gmail ? |
Posted by: Loiseau2nuit - 03-14-2023, 01:03 PM - Forum: General questions
- Replies (1)
|
 |
Hi there !
I'm dealing with an issue here, which I can't figure out.
I'm exporting transparent PNG images (or even XFCs) to transparent lossless webp images which are very well delt everywhere I use them except ... in GMail, which display them with a black background ?
Maybe I'm doing something wrong but I really can't find out what, nor why evryone deal with my image except the one service coming out of the same firm that created the webp format late back in 2010 (or 11) ?
Thanks in advance for any ideas.
|
|
|
How to increase color of a drawing |
Posted by: integrator - 03-13-2023, 02:13 PM - Forum: General questions
- Replies (2)
|
 |
Hello,
We have a floor plan, which we have used layer to make it transparent. But the walls etc.. are a lighter color and we need to make them black. Since it's only 1 layer I'm not sure how to increase the color.
Thanks
|
|
|
Bug when using Color to Alpha on selected area |
Posted by: wpkzz - 03-12-2023, 11:16 PM - Forum: General questions
- Replies (3)
|
 |
Fellow Image Manipulators:
I have this problem with GIMP when trying to make a selected area transparent so that part of an underlying photo is shown in the foreground image.
Using two layers, one of a photo under, a drawing above, I select by any method, but usually, Quick Mask, part of the drawing. I then proceed to fill the selection White, and then I order, "White to Alpha". In the preview it shows exactly what is intended, namely, the selected area is transparent and it shows part of the photo below. But once I push "Accept", then one of two possible weird things happen.
One is that if the Under Layer has a size as the canvas size, ALL of the drawing gets more or less transparent, as if by its content of "white". But it gets quite transparent.
The other is if the under layer is in size a fraction of the canvas, the whole part of the upper layer outside the size of the under layer gets this "partial but almost transparent" effect", the selected intended size gets the full transparent, and, the part above the area of the under layer that is not selected, is alright, that is, not transparent.
So I end with only that "margin" right, and everything else wrong.
|
|
|
|