Embeded scripts

This commit is contained in:
2024-06-16 00:14:51 +02:00
parent ca1a13ed9d
commit af4be850cb
5 changed files with 62 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
if(files.length == 0)
{
core.files("No files");
throw "";
}
let compression = {"compressionType": "zstd+sh"};
for(file of files)
{
if(file.suffix() == "fits" || file.suffix() == "fit")
{
core.log("Converting " + file.fileName());
convertedFiles.push(file.convertAsync(file.relativeFilePath(), "XISF", compression));
}
}