Auto-detect file format from data, not extension #776

Closed
Async0x42 opened this Issue Aug 22, 2015 · 2 comments

Comments

Projects
None yet
3 participants

Currently if you try to load a .png (say from the web), but it was actually a gif image, aseprite gives an error.

It would be better if it would totally ignore the file extension and determine what kind of image it is to load by itself (possibly display the format somewhere that the user is able to see?)

Totally minor issue, but it does save people guessing what extension it is and renaming multiple times to find out what works, in the event that it was saved incorrectly

dacap added this to the v1.1 milestone Aug 22, 2015

Collaborator

TheKK commented Nov 26, 2015

I think adding a new interface to app::FileFormat for checking specified file header would be one of the proper solution, what do you think @dacap?

@dacap dacap added enhancement and removed bug enhancement labels Mar 3, 2016

@dacap dacap modified the milestone: v1.1, v1.2 Mar 3, 2016

@dacap dacap modified the milestone: v1.1, v1.2 Oct 26, 2016

dacap self-assigned this Oct 26, 2016

Owner

dacap commented Oct 26, 2016 edited

This will be the first step to create a library (docio) to encapsulate all the code to load/save files into a specific module.

dacap closed this in 693a688 Oct 26, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment