Scripts and programs to automate Astroart
-
Rudi
- Posts: 160
- Joined: 08 Jan 2019, 04:47
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: 502
- Joined: 03 Dec 2018, 21:43
Post
by fabdev »
01 Jul 2024, 16:12
hello, use the command:
if the image has not a perfect 16 bit dynamic, use this to convert:
Code: Select all
Image.HistogramStretch(65535)
Image.Save("filename.tiff")