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

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

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

Async0x42 opened this issue Aug 22, 2015 · 2 comments
Assignees
Labels
feature Feature request, or something should be improved
Milestone

Comments

@Async0x42
Copy link

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 bug feature Feature request, or something should be improved labels Aug 22, 2015
@dacap dacap added this to the v1.1 milestone Aug 22, 2015
@TheKK
Copy link
Contributor

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 feature Feature request, or something should be improved and removed bug feature Feature request, or something should be improved 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
@dacap
Copy link
Member

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 as completed in 693a688 Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request, or something should be improved
Projects
None yet
Development

No branches or pull requests

3 participants