Fix hardcoded output image filename extension

This commit is contained in:
Adam Goldsmith 2021-09-18 01:24:53 -04:00
parent 72d42d0d92
commit 30f321b3d8

View File

@ -205,7 +205,7 @@ function run() {
const json_file = new File(member.file, member.getName() + '.json'); const json_file = new File(member.file, member.getName() + '.json');
ProjectUtilities.writeTextFile(json_file, JSON.stringify(saved_object, null, 4)); ProjectUtilities.writeTextFile(json_file, JSON.stringify(saved_object, null, 4));
const image_file = new File(member.file, member.getName() + '.png'); const image_file = new File(member.file, member.getName() + '.' + FORMAT);
ImageUtils.write(deck_image, image_file, FORMAT, -1, false, RESOLUTION); ImageUtils.write(deck_image, image_file, FORMAT, -1, false, RESOLUTION);
member.synchronize(); member.synchronize();