Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Lazily use ImageFileDirectory_v1 values from Exif #4031
ImageFileDirectory_v1 is lazy, performing operations when a value is accessed.
However, accessing all of those values to create a dictionary when loading the data undoes that speed increase.
#3663 set out to fix this by adding a new class - however, it had conflicts once #3625 was merged and a different class was added to deal with Exif data. This PR takes a different approach towards the original goal, for the new context.
It also uses this change by swapping calls in JpegImagePlugin and MpoImagePlugin from
Most of the changes are covered by existing tests.
Would this benefit from adding simple tests to directly test some of the changed/added functions?
If I'm following this report correctly, it looks like at least this