-
Notifications
You must be signed in to change notification settings - Fork 279
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
Extract XMP data from embedded JPEG preview inside RAF files #2613
Conversation
To verify #2610 one can use:
The XMP rating is now printed:
|
@kmilos Here we go. Maybe you can have a look at it - I've touched C++ code long time ago 😄 There is one thing that could be improved: The JpegImage metadata parser already parses exif and other information. There is no need to keep the old direct method by using TiffParser. But I don't know how the get the byte order for |
The Fujifilm X-T5 camera stores in-camera rating for RAF images by using XMP. But the XMP data is not directly encoded into the RAF structure - instead it is attached as a second APP1 segment to the embedded JPEG preview file. This patch extracts the JPEG preview and parses it like a standalone JPEG file.
Remove manual TiffParser usage for reading APP1 segement, instead use JpegImage for proper parsing.
Ah, probably want to wrap the whole JPEG parsing (incl. the two preview tags) in a try-catch now, or update the expected test output... |
Codecov Report
@@ Coverage Diff @@
## main #2613 +/- ##
==========================================
- Coverage 63.92% 63.92% -0.01%
==========================================
Files 103 103
Lines 22309 22306 -3
Branches 10795 10796 +1
==========================================
- Hits 14262 14259 -3
- Misses 5825 5827 +2
+ Partials 2222 2220 -2
|
fixed. |
Almost there! 👍 |
@Mergifyio backport 0.28.x |
✅ Backports have been created
|
Extract XMP data from embedded JPEG preview inside RAF files (backport #2613)
The Fujifilm X-T5 camera stores in-camera rating for RAF images by using XMP. But the XMP data is not directly encoded into the RAF structure - instead it is attached as a second APP1 segment to the embedded JPEG preview file.
This patch extracts the JPEG preview and parses it like a standalone JPEG file.
fixes #2610