mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
ImageViewer: Transform the image's dimension accordingly to the metadata
Exif metadata have two tags to store the pixel density along each axis. If both values are different and no action is taken, the resulting image will appear deformed. This commit scales the displayed bitmap accordingly to these tags in order to show the image in its intended shape. This unfortunately includes a lot of plumbing to get this information through IPC.
This commit is contained in:
committed by
Sam Atkins
parent
8dd887b3c8
commit
8e2102fb73
Notes:
sideshowbarker
2024-07-18 00:54:03 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/8e2102fb73 Pull-request: https://github.com/SerenityOS/serenity/pull/23193 Reviewed-by: https://github.com/gmta
@@ -20,6 +20,7 @@ struct Frame {
|
||||
|
||||
struct DecodedImage {
|
||||
bool is_animated { false };
|
||||
Gfx::FloatPoint scale { 1, 1 };
|
||||
u32 loop_count { 0 };
|
||||
Vector<Frame> frames;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user