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

Load JPEG files independent of suffix #25

Closed
wants to merge 2 commits into from

Conversation

FelixHaller
Copy link

@FelixHaller FelixHaller commented Sep 21, 2016

The bug is in the _ExifReader initialiser. I added a test and an example file (copy of 02.jpg). I think load() has to be redesigned. Please check code and comments and tell me what you think.

  • cleaned up load()
  • added dirty hack to load() (see comments)
  • added test for loading tests/images/02.docx (a jpeg file with wrong suffix)
  • all tests still working

* cleaned up load()
* added dirty hack to load() (see comments)
* added test for loading tests/images/02.docx (a jpeg file with wrong suffix)
* all tests still working
@coveralls
Copy link

coveralls commented Sep 21, 2016

Coverage Status

Changes Unknown when pulling 113689e on FelixHaller:master into * on hMatoba:master*.

@FelixHaller
Copy link
Author

Ah and it's not working in python2.7 because of changed str nature. As I said it's only a dirty hack. It has to be removed.

@coveralls
Copy link

coveralls commented Sep 21, 2016

Coverage Status

Changes Unknown when pulling 589015f on FelixHaller:master into * on hMatoba:master*.

@FelixHaller
Copy link
Author

I added a parameter byte_data which indicates that input_data is in bytes form.

@hMatoba hMatoba closed this Sep 29, 2016
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.

None yet

3 participants