I am working on an editor image importer.
What I have is an Image object created from the file I try to import (in my importer import method). I can save it as a tres via a ImageTexture. But even if I call texture.set_storage to (lossless) compressed and use the compress flag on the ResourceSaver.save the tres is not compressed. It shows up in the editor, but the generated file is huge.
If I instead use the extension png and use image.save_png the generated file is a compressed PNG as expected, but unfortunately I get an error "No loader found for resource" and the texture does not show up in the editor.
ResourceSaver.getrecognizedextensions returns tres, tex, res, png. Trying to use the ResourceSaver to generate a tex, res, or png just results in the same "No loader found for resource" error. Only tres seem to be a valid choice to create something that is then actually loaded. Both the res and tex files generated are almost as small as the png though. The tres is about 75 times bigger, so not really something that can be used in practice.