SaveView TIFF (16 bit)

Scripts and programs to automate Astroart
Post Reply
User avatar
Rudi
Posts: 159
Joined: 08 Jan 2019, 04:47

SaveView TIFF (16 bit)

Post by Rudi » 23 Jun 2024, 20:18

How do I make the Astroart script function Image.SaveView save in 16-bit TIFF?

The code below opens 16-bit FIT files, but the script saves in 8 bit TIFF.

Code: Select all

fitsFiles = FindFiles(folder, "*.fit")
N = Count(fitsFiles)
for i = 1 to N
   Image.Open(folder + fitsFiles{i})
   Image.SaveView(folder + "out\" + fitsFiles{i} + ".tiff")
   Image.Close
next i
/Rudi

fabdev
Posts: 495
Joined: 03 Dec 2018, 21:43

Re: SaveView TIFF (16 bit)

Post by fabdev » 01 Jul 2024, 16:12

hello, use the command:

Code: Select all

 
 Image.Save("filename.tiff")
   
if the image has not a perfect 16 bit dynamic, use this to convert:

Code: Select all

 
 Image.HistogramStretch(65535)
 Image.Save("filename.tiff")
   

Post Reply