Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 5,980
» Latest member: alcatala
» Forum threads: 7,395
» Forum posts: 40,280
Full Statistics
|
Latest Threads |
crop and straighten photo...
Forum: General questions
Last Post: rich2005
1 hour ago
» Replies: 3
» Views: 93
|
Color fill into pasted la...
Forum: General questions
Last Post: sallyanne
3 hours ago
» Replies: 1
» Views: 76
|
Arrow Script
Forum: Extending the GIMP
Last Post: Chris Thompson
Yesterday, 07:48 PM
» Replies: 133
» Views: 168,761
|
ofn3-layer-tiles
Forum: Extending the GIMP
Last Post: karaxus
Yesterday, 10:53 AM
» Replies: 7
» Views: 1,044
|
Slowing down
Forum: General questions
Last Post: rich2005
Yesterday, 10:33 AM
» Replies: 2
» Views: 211
|
Script-Fu in GIMP 3 websi...
Forum: Extending the GIMP
Last Post: pixelmixer
Yesterday, 10:22 AM
» Replies: 13
» Views: 1,263
|
AppImage for 2.10.38
Forum: Alternate Gimp packagings
Last Post: Tas_mania
05-07-2025, 11:10 PM
» Replies: 4
» Views: 292
|
I can' show the two layer...
Forum: General questions
Last Post: blogsofwardotme
05-07-2025, 09:10 PM
» Replies: 2
» Views: 151
|
Map to cylinder adding ra...
Forum: General questions
Last Post: n4mwd
05-07-2025, 06:46 PM
» Replies: 2
» Views: 137
|
Forced to operate Gimp 3....
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
05-07-2025, 03:22 PM
» Replies: 1
» Views: 103
|
|
|
Python-fu delete selection |
Posted by: cfdirt - 03-27-2018, 08:22 PM - Forum: Scripting questions
- Replies (2)
|
 |
This is my first project with python-fu. I have a routine I need to do on hundreds of images, a few times on each image.
What I need to do is
1. Select a color using pdb.gimp_image_select_color
2. Delete the contents of that selection
This is the equivalent of
1. Using the Select By Color Tool (Shift O)
2. Hitting the delete button on the keyboard
I can create the selection but I am not sure how to delete the contents within the selection. Can someone steer me in the right direction for what I need to do next or point me towards an example?
Many thanks
|
|
|
counting pixels |
Posted by: momara - 03-27-2018, 04:50 PM - Forum: General questions
- Replies (6)
|
 |
Hello,
Total newbie here and using Gimp for scientific purposes. We are following some past work of scientist testing digital photos to determine vegetation cover (obstruction from view). Two author groups used Gimp to analyze their photos (pre 2013). I am unable to recreate their procedures and can't figure out on my own how to count pixels. I have hundreds of photos of grasses and plants taken with a black backdrop. What I need to do is find the ratio of black pixels (the black backdrop) to other pixels (plants). I tried using Threshold to change to BW then using Histogram. I 've also tried using just Histogram. I've tried a bunch of different ways to get to a pixel count. I'm either missing a step or two or am just not understanding the results I'm getting. HELP!!! I can send an image if that helps.
Thank you,
Mo
|
|
|
Masking multiple layers at the same time |
Posted by: jrickards - 03-27-2018, 02:42 PM - Forum: General questions
- Replies (2)
|
 |
I had 4 layers and in one section, I wanted to create a mask that "drilled" down through 3 of the layers. It has been a while since I did that but I think that what I ended up doing was creating a selection from the layer mask on the top layer, then creating a layer mask from selection for the other two layers but I was wondering if there was a better way to do this. I tried grouping and the "chain" icon to see if what I did to one layer applied to the others in the group/chain but no luck.
Any suggestions?
Thanks,
Jules
|
|
|
.bat script issues |
Posted by: ThaUnknown_ - 03-26-2018, 08:33 PM - Forum: Extending the GIMP
- Replies (3)
|
 |
Code:
@ECHO OFF
TITLE Compress GIMP
CLS
REM This is to get the first argument after the batch file
SET FILE_IN=%1
CALL :DEQUOTE FILE_IN
REM This sets the path used in the gimp script
SET PATH=%FILE_IN%\*.png
REM This prints the path
ECHO Will run GIMP script in path '%PATH%'. Press Enter to continue or Ctrl+C to exit.
REM This waits for enter input
PAUSE
REM Change argument 0 to the GIMP exe
REM For me it's "D:\Programs\GIMP 2\bin\gimp-2.8.exe"
REM If you want to run it inside the current cmd window,
REM use gimp-console-2.8.exe, otherwise (aka new window pops up), use gimp-2.8.exe
"D:\Programs\GIMP 2\bin\gimp-2.8.exe" -i -b "(batch-auto-fix \"%PATH%\")"
REM Tell user it's done!
ECHO DONE.
GOTO:EOF
:DEQUOTE
FOR /F "delims=" %%A IN ('echo %%%1%%') DO SET %1=%%~A
GOTO:EOF
This is a script I asked my friend to make that changes the image mode to indexed and saves it as a compressed .png. He never could get it to work and he gave up so I figured this is the best place to ask for this kind of help. I hope his comments are enough, if not I could elaborate/explain if issues arise.
|
|
|
|