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

Fix "local variable 'file_type' referenced before assignment", and improve performance in common exif removal case #103

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jim-meyer
Copy link

  • Fixed "local variable 'file_type' referenced before assignment" if image type wasn't known.
  • No longer write image back to source image file if nothing has changed for better performance. The motivation here is that I've got 10000+ of images that I need to remove exif data from. Many of the images have already had exif removed previously. Thus writing unchanged data back to the source file was making batch processing take a lot longer than it needed to.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 94.896% when pulling 7b48d0f on jim-meyer:fixes into 3422fbe on hMatoba:master.

@jim-meyer jim-meyer changed the title Fixes Fix "local variable 'file_type' referenced before assignment", and improve performance in common exif removal case Jun 15, 2020
@djjudas21
Copy link

@hMatoba any chance of merging this, please? I depend on this fix

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