Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Async0x42 opened this Issue Aug 22, 2015 · 2 comments


None yet
3 participants
Copy link

Async0x42 commented Aug 22, 2015

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 dacap added this to the v1.1 milestone Aug 22, 2015


This comment has been minimized.

Copy link

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 milestones: v1.1, v1.2 Mar 3, 2016

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

@dacap dacap self-assigned this Oct 26, 2016


This comment has been minimized.

Copy link

dacap commented Oct 26, 2016

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 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
You can’t perform that action at this time.