1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:17:35 +00:00

LibGfx/JPEG: Expose the Exif metadata

The Exif metadata is contained in the APP1 segment. We only need to
call the TIFF decoder to get the metadata back :^).
This commit is contained in:
Lucas CHOLLET 2024-01-21 15:25:00 -05:00 committed by Andrew Kaster
parent f6f647bf13
commit 6eb574a2b6
2 changed files with 36 additions and 0 deletions

View file

@ -37,6 +37,9 @@ public:
virtual IntSize size() override;
virtual ErrorOr<ImageFrameDescriptor> frame(size_t index, Optional<IntSize> ideal_size = {}) override;
virtual Optional<Metadata const&> metadata() override;
virtual ErrorOr<Optional<ReadonlyBytes>> icc_data() override;
virtual NaturalFrameFormat natural_frame_format() const override;