| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
How to get G'MIC within G...
Forum: General questions
Last Post: teapot
28 minutes ago
» Replies: 3
» Views: 170
|
Gimp 3.x scanner xsane pl...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Ofnuts
11 hours ago
» Replies: 14
» Views: 11,461
|
Gimp 3.0 get Metadata wit...
Forum: Scripting questions
Last Post: Volker
Yesterday, 06:19 PM
» Replies: 3
» Views: 217
|
Text Editor hardly ever w...
Forum: General questions
Last Post: Snacko
Yesterday, 05:13 PM
» Replies: 4
» Views: 278
|
Colorized Layer Reverts t...
Forum: General questions
Last Post: TMORT
Yesterday, 03:17 PM
» Replies: 4
» Views: 268
|
How to make image and mas...
Forum: Installation and usage
Last Post: Ofnuts
11-08-2025, 08:39 PM
» Replies: 5
» Views: 286
|
Multi window mode mode fa...
Forum: General questions
Last Post: teapot
11-07-2025, 01:40 PM
» Replies: 5
» Views: 416
|
Animation with only GIMP ...
Forum: Gallery
Last Post: Scut-51
11-06-2025, 11:49 AM
» Replies: 25
» Views: 23,034
|
GIMP 3.04 opens with wind...
Forum: Windows
Last Post: subbareddy
11-05-2025, 07:47 AM
» Replies: 7
» Views: 3,821
|
Isolate, select and copy/...
Forum: General questions
Last Post: rich2005
11-04-2025, 04:39 PM
» Replies: 7
» Views: 520
|
|
|
| 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
|
|
|
|