Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
Macroglossum stellatarum
Forum: Watercooler
Last Post: Tas_mania
6 hours ago
» Replies: 1
» Views: 55
|
Missing script-fu "refres...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
9 hours ago
» Replies: 10
» Views: 315
|
processes in Whitelist
Forum: OSX
Last Post: rich2005
Yesterday, 09:45 AM
» Replies: 5
» Views: 184
|
Digikam: photo management...
Forum: Other graphics software
Last Post: denzjos
Yesterday, 06:53 AM
» Replies: 7
» Views: 4,590
|
GIMP 3.04 opens with wind...
Forum: Windows
Last Post: SteveH
07-01-2025, 11:47 PM
» Replies: 0
» Views: 77
|
AIGoR - Artificial Image ...
Forum: Other graphics software
Last Post: rich2005
07-01-2025, 12:12 PM
» Replies: 10
» Views: 3,123
|
Can't see GIMP windows
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Tankred
07-01-2025, 11:48 AM
» Replies: 3
» Views: 258
|
Windows save
Forum: General questions
Last Post: sallyanne
07-01-2025, 06:27 AM
» Replies: 3
» Views: 343
|
Trying to append part of ...
Forum: General questions
Last Post: Denarius
06-30-2025, 12:26 PM
» Replies: 5
» Views: 344
|
clone tool
Forum: General questions
Last Post: sallyanne
06-30-2025, 12:38 AM
» Replies: 6
» Views: 413
|
|
|
Scripts do not appear in menu |
Posted by: MQ95 - 02-04-2021, 02:09 PM - Forum: General questions
- Replies (9)
|
 |
Hi, i'm using Gimp 2.10 on ubuntu-based linux.
I'm trying to follow this guide on how to get started with GIMP scripting, but when I save the .py file in the scripts folder or the plug-ins folders nothing happens.
When I restart GIMP I don't see the option to run that script in the menu.
I've also tried downloading other scripts from the internet, put them in the scripts folder and plug-ins folder, and same thing, they don't appear in the menu.
Am I doing something wrong?
This is the script's code, which I copied from the tutorial:
Code:
#!/usr/bin/python
from gimpfu import *
def first_plugin(timg, tdrawable):
print "Hello, world!"
register(
"hello_world",
"Presents a Hello, World! message",
"Presents a Hello, World! message",
"Brad Jones",
"Brad Jones",
"2017",
"<Image>/Image/Hello, World!",
"RGB*, GRAY*",
[],
[],
first_plugin)
main()
It's from 2017, so maybe it's not compatible anymore?
Thanks for the help guys.
|
|
|
Foreground Select tool fails in Draw Mode |
Posted by: Joydeck - 02-04-2021, 06:08 AM - Forum: General questions
- Replies (2)
|
 |
On a layer in my Layer Group, the Foreground Select tool rough-selects, Draws, but on releasing the mouse button nothing remains drawn on the layer. (Foreground Select does work if I select the Layer Group rather than the layer.)
If I drag my Layer Group to a new image, Foreground Select works fine.
Since I had been experimenting with filters on the layer, maybe GIMP 2.10.22 lost its way somewhere. Is this likely a bug or am I missing something?
|
|
|
basic coloring from pencil drawing |
Posted by: voodoo - 02-03-2021, 09:19 PM - Forum: General questions
- Replies (2)
|
 |
is this possible to do in gimp?
after scanning a pencil drawing or taking a photo with a cell phone
1. open the scanned drawing, which would take a layer on its own
2. create another layer, which should be transparent by default; then else it would make no sense to create a layer that by default covers whatever is in the previous visible layers that were placed there for a reason
3. lock the background layer that contains the scanned pencil drawing
4. draw in new layer the color and textures for the drawing
5. delete or hide the background layer
6. end up with a nice colored picture based on a pencil doodle drawn in paper and then scanned
This could have been made in licensed tools, I am asking if this can be done with those steps and without any extra-hassle in Gimp
|
|
|
Anything but .XCF gets "Unknow Filetype" error |
Posted by: Lauwerier - 02-03-2021, 05:00 PM - Forum: Windows
- Replies (2)
|
 |
Hello,
I have re-installed GIMP 2.10.22 on laptop on which GIMP refuses to open any graphics file type except .XCF since a few days. On my other systems GIMP 2.10.22 is running without problems.
I have not found a soltution, but based on a few threads I have found my path to the Plugin directory is probably the reason.
I found this problem on:
- https://discuss.pixls.us/t/cant-open-files-solved/6339
- https://www.gimp-forum.net/Thread-Anythi...n+filetype
The presented solutions do not work for me.
I have tried both the default and custom 2.10.22 installation in Dutch and in English. I am an experienced Windows users and I use GIMP on Linux as well. I uninstalled GIMP and cleaned my Registry and hidden folders before each clean installation.
My EDIT -> Preferences -> Folders -> Plugins show:
- C:\Users\My_username\AppData\Roaming\GIMP\2.10\plug-ins
- C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins
I did use the "reset to default button" as well.
My Windows folders shows an empty folder at:
C:\Users\My_username\AppData\Roaming\GIMP\2.10\plug-ins
My windows explorer shows the plugins folder at:
C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins
This folder however does NOT show executables as stated in the above mentioned threads, but it contains sub-folders which do contain each the executable of the file type:
e.g. ..\file-jpeg which contains ..\file-jpeg\file-jpeg.exe
I even tried to add the file-jpeg folder via the dialog to the list of pluging folders, but it does not solve my problem.
Please tell me what to do to restore GIMP on my laptop.
|
|
|
palettes and gradients not imported (and maybe not saved?) |
Posted by: thryduulf - 02-03-2021, 12:27 AM - Forum: Linux and other Unixen
- Replies (1)
|
 |
I've recently changed computers, and copied all my palettes and gradients from Gimp 2.10 on my old computer into the directories set on my new one:
/home/chris/.var/app/org.gimp.GIMP/config/GIMP/2.10/palettes/
/home/chris/.var/app/org.gimp.GIMP/config/GIMP/2.10/gradients
file managers, terminal all show the files are there but they do not appear in the list, no matter how many times I refresh. When I navigate to that folder in the import palettes dialog it shows no files.
I've successfully manually imported a few (of many) palettes by copying the files to a different directory in my home, renaming them to .txt and importing them individually from there (although it doesn't read the number of columns).
However I don't see any duplicate files in the /home/chris/.var/app/org.gimp.GIMP/config/GIMP/2.10/palettes/ directory in a file manager or terminal and a new palette I created for testing is not found anywhere on the system when searched for by name (but does persist after closing and reopening gimp).
Importing all the palettes and gradients individually is not really practical, and given that I can't find new ones in a file manager I don't know how to back them up (or even if they are going to persist between sessions?).
|
|
|
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.
|
|
|
|