Skip to content

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

Open
jim-meyer wants to merge 2 commits intohMatoba:masterfrom
jim-meyer:fixes
Open

Fix "local variable 'file_type' referenced before assignment", and improve performance in common exif removal case#103
jim-meyer wants to merge 2 commits intohMatoba:masterfrom
jim-meyer:fixes

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