Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,780
» Latest member: Fennec72
» Forum threads: 7,594
» Forum posts: 41,394

Full Statistics

Latest Threads
Is there any version wher...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: HavingTooMuchFun
9 hours ago
» Replies: 0
» Views: 111
How to make a watermark o...
Forum: General questions
Last Post: kyolim
Yesterday, 10:05 PM
» Replies: 5
» Views: 14,080
Linux command that does e...
Forum: Other graphics software
Last Post: rich2005
Yesterday, 06:06 PM
» Replies: 1
» Views: 403
reliable Gimp 2.10.38 dow...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
Yesterday, 05:20 PM
» Replies: 2
» Views: 331
Batch Color Saturation
Forum: Extending the GIMP
Last Post: rich2005
Yesterday, 07:53 AM
» Replies: 15
» Views: 11,970
Photo play-time
Forum: Gallery
Last Post: Ofnuts
Yesterday, 07:32 AM
» Replies: 24
» Views: 21,812
BIMP plugin for GIMP 3.10
Forum: Extending the GIMP
Last Post: firefly
09-12-2025, 11:53 PM
» Replies: 2
» Views: 676
pl_stroke_arrows GIMP 3.0...
Forum: Extending the GIMP
Last Post: Scallact
09-12-2025, 04:03 PM
» Replies: 0
» Views: 331
How do you make text circ...
Forum: General questions
Last Post: rich2005
09-12-2025, 07:18 AM
» Replies: 12
» Views: 3,427
New Install, Black Screen...
Forum: OSX
Last Post: akhrameev
09-11-2025, 02:32 PM
» Replies: 3
» Views: 3,084

 
  python-fu pdb.file_exr_save issue
Posted by: JBreckeen - 05-01-2024, 03:12 PM - Forum: Scripting questions - No Replies

Hello again, so I have maybe an odd one.

Does anybody know if there are issues with .png's saved with the python pdb.file_png_save()?  In my plugin, any image I "save" using that has issues opening on some viewers, while the same image exported through Gimp's UI using the same settings works perfectly fine.

As a test, I have a simple white image.  If I export it as a .png (16b RGBA) through the UI, works fine everywhere.  But same .xcf saved with this code

Code:
def savePNG(image=None,
           drawable=None,
           filePath=None,
           interlace=0,
           compression=5,
           bkgd=1,
           gama=0,
           offs=0,
           phys=0,
           time=0,
           comment=0,
           svtrans=1
           ):

   try:
       pdb.file_png_save2(image,
                       drawable,
                       filePath,
                       filePath,
                       interlace,
                       compression,
                       bkgd,
                       gama,
                       offs,
                       phys,
                       time,
                       comment,
                       svtrans)

       return True

   except Exception as e:
       log.warning("ERROR:  ", e)
       return False

has the issue.  Keep in mind all the variables get their values set from outside, and it does not seem to matter what options are selected - it always has the problem.

The "bad" .png works in:  Gimp, Photoshop, Blender, Maya, OpenRV, win10 Photos, Paint, Darktable - and probably plenty of otherss.
But it does NOT work in DJV, or ColorSync viewers (and maybe others). Which of course is what we normally use and need.

When I have looked at the image details in RV, both files appear the same.

BTW I also tried pdb.file_png_save() as well

So, has anybody seen differences? 

Thanks much,

J.

AH!!!!!   Nevermind to all of that.  I found the issue:

I stupidly overlooked the bool vs binary problem:  True/False vs 0/1.


Doh!

Sorry for the interruption.

J.

Print this item

  Currently Active Image
Posted by: JBreckeen - 05-01-2024, 02:54 PM - Forum: Scripting questions - Replies (6)

Hello all. 

So I have searched and found some info saying this may not be able to be done, but I would really like a way to infer the currently-viewed image in python-fu.

I need this since I have a plugin (think of it more as an extension in other software), that communicates with Gimp from outside.  Mostly is handles loading, saving, and exporting of image files to our pipeline.  Right now I just use:

        currentImage = gimp.image_list()[0]
        currentDrawable = pdb.gimp_image_get_active_layer(currentImage)


which works if there is either one image file open, or want to deal with the last opened.  But would really prefer to be able to have it work on whatever image is "active".  I have read there is nothing in the API that deals with the active, but are there any work-arounds?

Is there something that I am missing?

Thanks in advance,

J.

Print this item

  how do i erase blue pencil lines from a black and white drawing?
Posted by: ceylonanderson@gmail.com - 05-01-2024, 05:35 AM - Forum: General questions - Replies (1)

How do i erase blue pencil lines from a black and white drawing?

Print this item

  Question about selection tools
Posted by: rinaldop - 04-28-2024, 10:03 AM - Forum: General questions - Replies (3)

Do they stack? For example I am doing a Color Select and it is working perfectly but I do not want it to select the color throughout the entire image. I only want to select the color on a  piece of the image. I tried using Rectangle Select to select the portion of the image that I am interested in and then I tried to use Color Select just in the previously selected area but instead the color was selected throughout the image.

I tried using Select Fuzzy but that still selected too much of the image. There must be a way to have Select Color look for the selected color in just a part of the image.

For example in the image below I want to turn the blocks of green that form a ( and turn them blank. I have gotten SO CLOSE but either a bit too much or a bit too little gets selected.  

   

Here is my best attempt but too much of the blocks remain. 
   
Here too much of the image is removed.
   
It would be nice to have the Select Color tool just look at a small area surrounding the blocks. 
 
Thanks

Print this item

  creases
Posted by: novalore40 - 04-27-2024, 12:35 AM - Forum: General questions - Replies (13)

I have always used an older version of gimp like 2.8 or something like that i just upgraded to 2.10.36. now this is my problem i make clothes for sims and i always used the bump map when doing this in 2.8...I did this by adding a new transparent layer putting the creases in white on that layer and then go to where i want the creases to be on the main colored layer and opening up bump map and clicking on the crease layer so it would bump map it to the colored layer. pretty easy and straight forward now my problem is i go to do that in the new gimp and i get nada nothing ect, i have looked for tutorials that explain how to do this but find none. can anyone help ty in advance

Print this item

  AppImages and Help Files
Posted by: CtrlAltDel - 04-26-2024, 05:07 AM - Forum: Alternate Gimp packagings - Replies (2)

Hello everyone. I need some assistance with getting the Gimp help file to work properly. I tried doing a search for appimage + help file and appimage + user manual and several other variations of this and didn't get any board hits.

I'm using the Gimp AppImage by TasMania17 here:

gimp2-10-36-python2-mm-ubuntu.AppImage

along with Linux Mint 21.3.


Neither the "use the online version" or "use a locally installed copy" of the help system work properly. I would prefer to utilize the "use a locally installed copy" offline option if possible.  I have a .pdf copy of the help file/user manual, which is okay, but it's not integrated into Gimp and is a hassle to pull up each time I need it.

Trying on my own to get things working properly, I installed gimp-help-en 2.10.0-1 from Linux Mint's Software Manager.  I knew it likely would not work, but did manage to get the 57.3 mb  folder of .html files that was installed and saved it in case I could use that in some way.

I also downloaded the gimp-help-2.10.34 .tar file from docs.gimp.org, but really don't know what to do with it.  I've never been too adept with tarball archive files.  Sad

Is it possible to get the integrated help file system to work properly with an appimage?

Print this item

  How do I make this image transparent
Posted by: KirbySS44 - 04-26-2024, 01:35 AM - Forum: General questions - Replies (4)

Hi. I want to make this image transparent: https://imgur.com/a/7z7WtzU

So it looks like this example: https://imgur.com/a/R0I8Z6M

I believe the way to do this is the use color to alpha but it doesn't give the desired result I want.

Anyone know how?

Print this item

  How do I remove the background and change the colour of an object (science figure)?
Posted by: jrnic1 - 04-25-2024, 03:39 AM - Forum: General questions - Replies (4)

Monash University (the institution I work at as a neuroscientist) decided to no longer provide academic researchers (staff and students) with Adobe Creative cloud (essential things like Illustrator and Adobe DC Pro) because they're "too expensive" for the budget. Staff and students are required to purchase said software out of their own wage. Meanwhile, the Vice Chancellor (on AUD 1.3 mil/year) was given a going away party, which cost  AUD 147,000. 

Alas, I need to re-learn how to do all my skills again on free alternatives (i.e., Inkscape and GIMP).

I need to know how to select a colour channel, add a layer mask to remove the background, and then change the colour of a neural spike trace response. here is what it should look like (see images):

[Image: true?v=v2][Image: true?v=v2&px=999]

[Image: large?v=v2&px=999]

Print this item

  Scaling an image to a fixed file size
Posted by: julescousins - 04-24-2024, 10:07 AM - Forum: General questions - Replies (4)

Hi there, newbie here.
I am a very basic user, doing simple, repetitive tasks, which typically involve cropping an image to a rectangular aspect ratio of 1.308:1 but to different pixel sizes. The online service the pictures are intended for has a maximum file size of 187kb per image, so I then scale my images, which are of different file sizes (so I can't use a default percentage scale), possibly 2 or 3 times until it is just under 187kb. 
Is there an easier way to scale my cropped image to a fixed file size?
Many thanks,
Jules.

Print this item

  Bulk LUTs Previewer
Posted by: denzjos - 04-24-2024, 08:57 AM - Forum: Other graphics software - No Replies

If you have lots of LUTs and you want to have a preview, then you can use this free program. Make a small crop or downsize a big photo if you want a fast preview.  

https://sourceforge.net/projects/bulk-luts-previewer/

   

Print this item