Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 4,556
» Latest member: chblondel
» Forum threads: 7,442
» Forum posts: 40,676
Full Statistics
|
Latest Threads |
GIMP 3.0.4 Script-Fu Batc...
Forum: Extending the GIMP
Last Post: AgHornet
Yesterday, 10:20 AM
» Replies: 0
» Views: 68
|
Technique for removing ov...
Forum: General questions
Last Post: denzjos
Yesterday, 09:47 AM
» Replies: 12
» Views: 591
|
Windows save
Forum: General questions
Last Post: Tas_mania
06-26-2025, 10:30 PM
» Replies: 2
» Views: 180
|
unable to convert from rg...
Forum: General questions
Last Post: rich2005
06-26-2025, 11:42 AM
» Replies: 1
» Views: 167
|
How to fix halftones?
Forum: General questions
Last Post: rich2005
06-26-2025, 10:57 AM
» Replies: 2
» Views: 202
|
Automating complex export
Forum: Scripting questions
Last Post: JohnHammersley
06-26-2025, 10:56 AM
» Replies: 2
» Views: 218
|
Help on doing text effect
Forum: General questions
Last Post: lunymarcus
06-25-2025, 11:47 PM
» Replies: 3
» Views: 207
|
[Problem] ROMM RGB ICC-pr...
Forum: Windows
Last Post: rich2005
06-25-2025, 06:37 PM
» Replies: 6
» Views: 467
|
How can I avoid the outli...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: vitforlinux
06-25-2025, 12:00 PM
» Replies: 2
» Views: 234
|
[RFC] Summer of code proj...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Ofnuts
06-23-2025, 03:33 PM
» Replies: 16
» Views: 4,057
|
|
|
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.
|
|
|
Saving to .pdf problem |
Posted by: Pat625 - 03-25-2018, 05:55 PM - Forum: General questions
- Replies (3)
|
 |
I can open a multipage .pdf in Gimp 2.8.22 as layers and work on it without difficulty. When I try to save it as a .pdf, all I get is one page and the others are lost. Is there any way to save a multipage .pdf using Gimp?
|
|
|
|