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

Support all JPGs rather than specific JFIF ones #50

Merged
merged 1 commit into from
Nov 23, 2015
Merged

Support all JPGs rather than specific JFIF ones #50

merged 1 commit into from
Nov 23, 2015

Conversation

vampirical
Copy link
Contributor

For the purposes of this library requiring JPEGs use the JFIF standard doesn't seem necessary. Old school non-JFIF jpegs, like the kind produced by ffmpeg, aren't usable as-is.

Since there was only a limited set of markers in the list and a TODO to support all I've just removed the JFIF requirement entirely. JFIF will still work fine but now so will all valid JPEGs.

For the purposes of this library requiring JPEGs use the JFIF standard doesn't seem necessary. Old school non-JFIF jpegs, like the kind produced by ffmpeg, aren't usable as-is.

Since there was only a limited set of markers in the list and a TODO to support all I've just removed the JFIF requirement entirely. JFIF will still work fine but now so will all valid JPEGs.
@vampirical
Copy link
Contributor Author

This also fixes issue #44.

@jimmed
Copy link

jimmed commented Oct 20, 2015

Obligatory +1 here - the JFIF combing seems entirely unnecessary given the many other possibilities.

@shinnn
Copy link
Contributor

shinnn commented Nov 23, 2015

LGTM

shinnn added a commit that referenced this pull request Nov 23, 2015
Support all JPGs rather than specific JFIF ones
@shinnn shinnn merged commit 9095f5b into image-size:master Nov 23, 2015
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

Successfully merging this pull request may close these issues.

3 participants