Welcome, Guest |
You have to register before you can post on our site.
|
|
|
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?
|
|
|
Changing "Tool_Tip" foreground colors to make readable |
Posted by: brianpb007 - 03-25-2018, 02:27 PM - Forum: Linux and other Unixen
- Replies (1)
|
 |
When I hover over a button in GIMP, and get a "tool tip" which appears to have white text on an off-white background, nearly zero contrast and impossible to read.
How does one change the foreground/background colors of the 'tool tips' to make these readable?
If I download/install 2.8.22 will I have library version conflicts, manual updates? [1]
System:
GIMP 2.8.18, YAST install, latest available from Suse
OpenSuse 42.3, fully patched
Linux spock 4.4.104-39-default #1 SMP Thu Jan 4 08:11:03 UTC 2018 (7db1912) x86_64 x86_64 x86_64 GNU/Linux
NOTE [1]: Installed VLC outside of YAST, now seeing:
phonon-backend-vlc-0.8.2-5.2.
x86_64 conflicts with vlc-noX > 2.2.99 provided by vlc-noX-3.0.1-278.2.x86_64
vlc-codecs-3.0.1-278.2.x86_64 requires libavcodec57(unrestricted), but this requirement cannot be provided
As bad as DLL HELL with windows!
|
|
|
|