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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,782
» Latest member: MichaelDak
» Forum threads: 7,595
» Forum posts: 41,397

Full Statistics

Latest Threads
How do I uninstall GIMP 3...
Forum: Linux and other Unixen
Last Post: Ofnuts
28 minutes ago
» Replies: 1
» Views: 15
AI Gimp Plugins
Forum: Watercooler
Last Post: merlilderman
Yesterday, 04:16 PM
» Replies: 21
» Views: 68,128
Is there any version wher...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: HavingTooMuchFun
Yesterday, 01:57 PM
» Replies: 0
» Views: 178
How to make a watermark o...
Forum: General questions
Last Post: kyolim
09-13-2025, 10:05 PM
» Replies: 5
» Views: 14,147
Linux command that does e...
Forum: Other graphics software
Last Post: rich2005
09-13-2025, 06:06 PM
» Replies: 1
» Views: 460
reliable Gimp 2.10.38 dow...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
09-13-2025, 05:20 PM
» Replies: 2
» Views: 361
Batch Color Saturation
Forum: Extending the GIMP
Last Post: rich2005
09-13-2025, 07:53 AM
» Replies: 15
» Views: 12,039
Photo play-time
Forum: Gallery
Last Post: Ofnuts
09-13-2025, 07:32 AM
» Replies: 24
» Views: 21,880
BIMP plugin for GIMP 3.10
Forum: Extending the GIMP
Last Post: firefly
09-12-2025, 11:53 PM
» Replies: 2
» Views: 714
pl_stroke_arrows GIMP 3.0...
Forum: Extending the GIMP
Last Post: Scallact
09-12-2025, 04:03 PM
» Replies: 0
» Views: 365

 
  Load RGB fits image with GIMP Python API
Posted by: damien.f - 10-08-2024, 02:03 PM - Forum: Scripting questions - Replies (7)

Hello everyone!

I'm struggling with python API to open a FITS image.

When I open a FITS picture with the menu "file->open" I have a prompt regarding picture composition : "none" or "NAXIS=3, NAXIS3=2,...,4". And when I select "NAXIS..." the image is correctly loaded into GIMP in RGB.

But when I use python pdb.file_fits_load() command, I have no options in order to specify none or NAXIS. thus my image is always in gray scale.

Also, with python command, I do not have multiple images as I have when I select "none" on the HMI (=> 3 images, one per color).

What should I do to have the image in RGB loaded by python command?

Thank you for your help!
Best regards,
Damien.

Print this item

  gimp-image-get-filename
Posted by: PixLab - 10-07-2024, 07:36 AM - Forum: Scripting questions - Replies (12)

I got errors when trying to set the original name, what did I missed?
It seems to be from the second "if" (first one works fine) "pathchar (car (gimp-image-get-filename image)) ".webp"))"

BTW is there a "else" or sort of in scheme?

Code:
   (while (> i 0)

     (set! image (vector-ref (cadr (gimp-image-list)) (- i 1)))
     
     (if (= KeepName 0)
         (set! newFileName (string-append inDir
                 pathchar inFileName
                 (substring "0000000" (string-length
                 (number->string (+ inFileNumber i))))
                 (number->string (+ inFileNumber (- ii i))) ".webp"))
       )
     (if (= KeepName 1)
         (set! newFileName (string-append inDir
                 pathchar (car (gimp-image-get-filename image)) ".webp"))
     )
   
         (file-webp-save2 isInteractive
                     image
                     (car (gimp-layer-new-from-visible image image "export"))
                     newFileName
                     newFileName

   

Print this item

  Incandescence II
Posted by: MJ Barmish - 10-06-2024, 04:46 PM - Forum: Gallery - Replies (2)

Here is the new version of my "Incandescent little creek", that I have just published on my site

   



https://mjbarmish.fr

Print this item

  Batch exporting
Posted by: fictionary - 10-06-2024, 08:56 AM - Forum: Gimp 2.99 & Gimp 3.0 - Replies (1)

Just curious if batch exporting (without being a programmer) is going to be in the 3.0 update. It seems there are no "simple" solution now, "for years in linux". The single greatest blockade to using linux/ open-source in the realm of 2d support for visual effects, 3d, and video editing with a 2d support application is "batch exporting/ batch editing." Various solutions always seem to be some remote github download that ends up being a very difficult process to configure (above a normal persons ability). It would be AMAZING to be able to "batch export images inside of gimp." If there is a way that is "simple" and internal to Gimp or any 2d app available to linux I can't seem to find it. 

So very grateful for any and all open source software, as it is making the world a better place but this one feature is a massive show-stopper for me to convert over to linux and open source software. Been waiting and search on this for a long time.

Any support would be deeply appreciated. Not complaining, just hoping with fingers crossed.

Print this item

  NAPS2 scanner software
Posted by: denzjos - 10-06-2024, 07:24 AM - Forum: Other graphics software - Replies (1)

NAPS2 is free and open source scanning software for Windows, Mac and Linux.
Easily scan with devices from Canon, Brother, HP, Epson, Fujitsu, and more. Then save to PDF, TIFF, JPEG, or PNG with a single click.
https://www.naps2.com

Print this item

  Increase small preview window
Posted by: ebernard - 10-05-2024, 03:29 PM - Forum: General questions - Replies (4)

I'm in the process of designing scroll saw patterns from original photos of my three brothers using Gimp.
I need larger glimspe of their faces to ensure the best cut lines for the pattern.
Here's where I am asking for your assistance....
When I desaturate the photo I then proceed to go to Filters/Artistic/Photocopy (legacy) then voila a small preview
Photocopy 4"X4" window pops up. This size preview is difficult to get a good visual of the whole face.
I really need a larger shot of the face to design a quality scroll saw pattern.
Any help would be greatly appreciated


Eugene

Print this item

  transparency
Posted by: Silly - 10-04-2024, 03:35 PM - Forum: General questions - Replies (1)

if I save an transparent image as png it appears correctly on the Web.
How can Iget this image as jpg-image?

Print this item

  Save Path (post moved)
Posted by: Flier545 - 10-03-2024, 05:22 PM - Forum: General questions - Replies (1)

    Not sure if this is the correct place to ask but I am creating a path over an image but when I try to export the path as in the video below I do not see toved mhe export option

https://youtu.be/j8w6ddIKjcs?si=qpNw-Vs5EX7ZIJNQ

Thanks for your help

Think I have sorted it there is a path tab on the right hand side I need to click first

Print this item

  Faster image export possible?
Posted by: denzjos - 10-03-2024, 04:18 PM - Forum: General questions - Replies (2)

Can I export an image without the JPEG quality menu appearing every time? Now when exporting I have to click export three times: 'File/Export As', 'Export' (fill in file name) and 'Export' (choose JPEG quality). For a faster workflow I want to skip the last one (if possible)

Print this item

  CRASHING Elsamuko Nationa Geographic NEXT GEN in 2.99.19
Posted by: vitforlinux - 10-03-2024, 12:44 PM - Forum: Gimp 2.99 & Gimp 3.0 - Replies (12)

I tried to port Elsamuko National Geographic to Gimp 2.99.19 (this filter works on 2.10 Compat OFF)... but I get a complete Gimp crash.

I think it's the line:

Code:
(car (plug-in-decompose 0 aimg 1 (vector adraw) "rgb" TRUE FALSE)) ;2.99.19

Maybe I'm wrong in the syntax, or it's Gimp 2.99.19 that has a problem, in which case I should report it to the developers, but a second opinion would be of clarification, before causing trouble for the wrong reasons.

Here the scm file:

https://github.com/vitforlinux-gimp/scm-...xt-gen.scm



THANK YOU

Print this item