-
Notifications
You must be signed in to change notification settings - Fork 282
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
Treat Exif.Sony1.PreviewImage as undefined tag #2015
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2015 +/- ##
==========================================
+ Coverage 61.16% 61.17% +0.01%
==========================================
Files 96 96
Lines 19255 19251 -4
Branches 9862 9858 -4
==========================================
Hits 11777 11777
+ Misses 5135 5134 -1
+ Partials 2343 2340 -3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect. Less code is almost always better. In this case, it get us totally out of trouble.
The tag is always treated as "unknown/count==0". The tag is still understood and documented:
$ taglist ALL | grep Sony1 | grep PreviewImage | grep -v Size
Sony1.PreviewImage,8193,0x2001,Sony1,Exif.Sony1.PreviewImage,Undefined,"JPEG preview image"
Sony2.PreviewImage,8193,0x2001,Sony1,Exif.Sony1.PreviewImage,Undefined,"JPEG preview image"
$
If David works on this, we might give this more tuning/polish. However for now it get us out of trouble. I've very pleased about this.
@Mergifyio backport 0.27-maintenance |
✅ Backports have been created
|
Treat Exif.Sony1.PreviewImage as undefined tag (backport #2015)
Fixes: #2001
We should treat Exif.Sony1.PreviewImage as an undefined tag, as suggested by @clanmills in this comment.
In the future, we may be able to do something more sophisticated with Exif.Sony1.PreviewImage. For example, something like what I tried in #2008 might enable us to correctly update the offset that's stored in the tag when modifying the metadata causes us to change the size of the file.