From b63b3a3f62766835957bdd28da51005106cf2cc0 Mon Sep 17 00:00:00 2001 From: Brendan Hagan Date: Mon, 20 Jun 2022 23:50:17 -0400 Subject: [PATCH] misc: store images internally with PNG extension for easier manual tinkering --- CHANGES.md | 1 + src/gui/value/image.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 4029fc46..b27e2e07 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -12,6 +12,7 @@ Features: * Add filter box to Game and Stylesheet selection. * Add extra_card("field name") script function for accessing Extra Card Fields. * Add Clear button to console panel. + * Store images internally with PNG extension. ------------------------------------------------------------------------------ HEAD: new items added as changes are made diff --git a/src/gui/value/image.cpp b/src/gui/value/image.cpp index c529c244..9e32eaf2 100644 --- a/src/gui/value/image.cpp +++ b/src/gui/value/image.cpp @@ -45,7 +45,7 @@ void ImageValueEditor::sliceImage(const Image& image) { // clicked ok? if (s.ShowModal() == wxID_OK) { // store the image into the set - LocalFileName new_image_file = getLocalPackage().newFileName(field().name,_("")); // a new unique name in the package + LocalFileName new_image_file = getLocalPackage().newFileName(field().name,_(".png")); // a new unique name in the package Image img = s.getImage(); img.SaveFile(getLocalPackage().nameOut(new_image_file), wxBITMAP_TYPE_PNG); // always use PNG images, see #69. Disk space is cheap anyway. addAction(value_action(valueP(), new_image_file));