mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00: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:
parent
8dd887b3c8
commit
8e2102fb73
6 changed files with 27 additions and 8 deletions
|
@ -20,6 +20,7 @@ struct Frame {
|
|||
|
||||
struct DecodedImage {
|
||||
bool is_animated { false };
|
||||
Gfx::FloatPoint scale { 1, 1 };
|
||||
u32 loop_count { 0 };
|
||||
Vector<Frame> frames;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue