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

Content Type image/jpg is not recongized as JPEG #51

Open
yvesf opened this issue Oct 20, 2018 · 1 comment
Open

Content Type image/jpg is not recongized as JPEG #51

yvesf opened this issue Oct 20, 2018 · 1 comment

Comments

@yvesf
Copy link

yvesf commented Oct 20, 2018

Some servers serve JPEG images with content type image/jpg instead of image/jpeg (the e).

The transcoder should catch these as well (compy.go):

        if *jpeg != 0 {
                tcjpeg :=  tc.NewJpeg(*jpeg)
                p.AddTranscoder("image/jpeg", tcjpeg)
                p.AddTranscoder("image/jpg", tcjpeg)
        }

@barnacs do you agree and if so do you want a pull-request for this change?

@gaul
Copy link
Collaborator

gaul commented Oct 20, 2018

This seems fine. Could you share an example server and submit a pull request including a unit test?

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