Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
How to make a watermark o...
Forum: General questions
Last Post: kyolim
10 hours ago
» Replies: 5
» Views: 13,943
|
Linux command that does e...
Forum: Other graphics software
Last Post: rich2005
Yesterday, 06:06 PM
» Replies: 1
» Views: 299
|
reliable Gimp 2.10.38 dow...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
Yesterday, 05:20 PM
» Replies: 2
» Views: 218
|
Batch Color Saturation
Forum: Extending the GIMP
Last Post: rich2005
Yesterday, 07:53 AM
» Replies: 15
» Views: 11,837
|
Photo play-time
Forum: Gallery
Last Post: Ofnuts
Yesterday, 07:32 AM
» Replies: 24
» Views: 21,684
|
BIMP plugin for GIMP 3.10
Forum: Extending the GIMP
Last Post: firefly
09-12-2025, 11:53 PM
» Replies: 2
» Views: 593
|
pl_stroke_arrows GIMP 3.0...
Forum: Extending the GIMP
Last Post: Scallact
09-12-2025, 04:03 PM
» Replies: 0
» Views: 253
|
How do you make text circ...
Forum: General questions
Last Post: rich2005
09-12-2025, 07:18 AM
» Replies: 12
» Views: 3,319
|
New Install, Black Screen...
Forum: OSX
Last Post: akhrameev
09-11-2025, 02:32 PM
» Replies: 3
» Views: 2,991
|
Trouble changing backgrou...
Forum: General questions
Last Post: tomatoSauce23
09-11-2025, 12:50 PM
» Replies: 6
» Views: 1,497
|
|
|
Creating plugins Windows 10 |
Posted by: Tom Swift - 01-31-2021, 09:56 PM - Forum: Extending the GIMP
- Replies (5)
|
 |
Hi, all. Has anyone managed to make a plugin in Windows 10 using Visual Studio or Code::Blocks? I managed to find gimp-master.zip and gtk-master.zip but for the life of me can't seem to get it to compile. Could someone give a quick run down of how to get it going in Windows?
Thanks.
|
|
|
Wizard advice requested: Struggling to write plug in that lists color data |
Posted by: kmullinax - 01-31-2021, 09:16 PM - Forum: Scripting questions
- Replies (2)
|
 |
TL,DR: Looking to quickly and automatically generate a list of each unique color in an image with pixel counts.
Hi everyone -
I have been struggling to write this plugin for too long and don't typically ask for help, but despite my best attempts at reverse-engineering, I just can't seem to get my head wrapped around this one and am about to give up. I thought I would try here as a desperate final plea.
I am making art from pixelated images, so I take RGB images and convert them to Indexed color 8-bit images using a specific custom palette of 120 colors representing the available manufacturer colors. My custom palette has the RGB and manufacturer color codes in the palette (i.e. color "black" is C02). I am trying to create a quick easy way to see how much of each color I will need before starting the art project so I can buy / have enough material on-hand.
Right now, this is how I have to accomplish it... After converting the RGB image to the custom palette, I view the colormap and see each of the individual colors used. By selecting-by-color for each item in the colormap, I can see the pixel count on the Histogram. Then using the HTML Notation (HEX code) from the colormap, I find the corresponding color on my spreadsheet and then enter in the total pixel count for this project. Then I do that for the next color until I've hit 120 or however many are in the image. This is seriously time consuming.
Since all this data is so easily available in Gimp, I feel like it has to be possible to have a plugin do all this, and at this point I would be SO happy with any system that reduces the time it takes me. I'm not a newbie to programming, but I'm not familiar with Python and I've attempted to create scripts in Python and Script-Fu to accomplish it, but there's a shocking lack of information about this online and so far I haven't been able to figure it out. I'm to the point where I think some of this data is only accessible in C: and that's just not happening.
So for my final goal, the absolute best-case scenario is one where the plugin creates a .txt or .csv file that references the custom palette and lists each manufacturer code with the number of pixels. Second-best is an exported file (or even a list in the Error Console) with the HEX code (or RGB codes) of each individual color with its pixel count.
Thanks in advance for any help!
Edit: Honestly it seems like this information should be available via Colors->Info->Export Histogram... but for whatever reason the amount of info you can get from that export is seriously lacking. I would be happy just to have that function work properly lol. On another note completely, in the future, it would be great to have intelligent custom palettes in Gimp, so I could select-by-color from my palette, etc.
Edit #2: Okay I discovered a very interesting piece of information... the colormap tab indexes the colors in descending order of proportion in the image. That means the colormap must inherently know how many pixels of each color exist in the image, even though it doesn't display that info.
|
|
|
Adding Plugins in Windows 10 |
Posted by: meetdilip - 01-31-2021, 07:12 AM - Forum: Windows
- Replies (4)
|
 |
It was easy in Linux, the only thing to do was download the App image with plugins. Now I deeply miss Resysnthesiser and other plugins that came with the App Image. It would be nice to know where to find them and how to add it inside GIMP for Windows 10.
|
|
|
How to move docking panels to top/bottom side instead left/right |
Posted by: StrikeAgainst - 01-30-2021, 03:58 AM - Forum: General questions
- Replies (2)
|
 |
I recently got a new screen which features turning to portrait orientation. Wanting to use GIMP (in single-window mode) with it, I now need to find a way to reposition the left- and right-side docking panels to the top and/or bottom side as they take up too much unneeded space and make it hard to work with wider layers. Temporarily switching to multi-window mode to reposition docks only attaches them back to the left or right side. I wasn't able to find any methods through online research so far.
Does anyone know how to do this? Or is there no way so that I have to resort to multi-window mode?
EDIT: I'm using GIMP 2.10 on Windows 10 x64
|
|
|
|