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

Should be able to open files irrespective of file extension #103

Open
elmimmo opened this issue Apr 30, 2015 · 3 comments
Open

Should be able to open files irrespective of file extension #103

elmimmo opened this issue Apr 30, 2015 · 3 comments

Comments

@elmimmo
Copy link

elmimmo commented Apr 30, 2015

Simple Comic refuses to open files whose file extensions are not any that it recognizes.

Comics sold as EPUB files are plenty of times effectively a CBZ file, as they contain a sequence of image files that are enough to render all the content appropriately, the extra HTML, CSS and XML files being just an EPUB requirement that a CBZ reader can do without. Simple Comic will refuse to open them even when trying to force-open them (drag & drop on Simple Comic's icon in the Dock while pressing the option/alt key, or sending the file to Simple Comic with Alfred, LaunchBar, Terminal or others).

If the problem is that Simple Comic does not know what format they are in order to determine how to open them because it bases that assumption on file extension, Simple Comic could instead read the first bytes of such files in search of a header, which all ZIP files have irrespective of their filename.

@arauchfuss
Copy link
Owner

Having Simple Comic open any file format regardless of UTI or extension is not the best idea. I will look into how EPUB comics work though.

@elmimmo
Copy link
Author

elmimmo commented Feb 9, 2017

I am not that suggesting Simple Comic registers itself as being able to open any file, but that it attempts to if forced to open a certain file (like via drag & drop on Simple Comic's icon in the Dock while pressing the option/alt key, or sending the file to Simple Comic with Alfred, LaunchBar, Terminal or others). There are many kind of files that are ZIP files containing images that do not have .cbz or .zip in their file file name.

@arauchfuss
Copy link
Owner

I will look into it, but no promises.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants