Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load RGB fits image with GIMP Python API
#1
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.
Reply


Messages In This Thread
Load RGB fits image with GIMP Python API - by damien.f - 10-08-2024, 02:03 PM

Forum Jump: