@Pogo wrote:
Hi all
For an application I am writing I have the need to convert a jpg image into fits format.
I have some code that saves an image array coming from an ASCOM Driver that works without any issues, so I know the writing of the fits file is not the problem.However I just can't figure out how to convert the jpg data so that it can be stuffed into a fits file. I've been trying various things over the last few days, like converting the image data to grayscale, extracting just the red channel etc, but whatever image data I write into the fits file ends up as not being readable. Apps such as SGP always say that it's an invalid file format.
So I was wondering if anyone could maybe provide a hint on how I could achieve this? SGP can do this, so I know it must be possible, but I just haven't figured out how to.
Cheers for any pointers or hints.
Martin
Posts: 3
Participants: 2