Bug 197074 - Images with orientation = usesWidthAsHeight() do not scale properly
Summary: Images with orientation = usesWidthAsHeight() do not scale properly
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Said Abou-Hallawa
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-04-18 14:28 PDT by Said Abou-Hallawa
Modified: 2019-04-21 12:39 PDT (History)
4 users (show)

See Also:


Attachments
test case (8.70 MB, image/jpeg)
2019-04-18 14:28 PDT, Said Abou-Hallawa
no flags Details
Patch (5.57 KB, patch)
2019-04-18 14:29 PDT, Said Abou-Hallawa
sabouhallawa: review?
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2019-04-18 14:28:11 PDT
Created attachment 367758 [details]
test case

Open the attached image. It has orientation = OriginLeftBottom. This means the physical width of the image is actually its height.

Expected: The aspect-ratio of the image is persevered no matter how big the window size is.
Actual results: The aspect-ratio of the image is not persevered. And the image is resized in an awkward way.
Comment 1 Said Abou-Hallawa 2019-04-18 14:29:58 PDT
Created attachment 367759 [details]
Patch
Comment 2 Said Abou-Hallawa 2019-04-18 15:07:50 PDT
<rdar://problem/50016183>
Comment 3 Darin Adler 2019-04-21 12:39:58 PDT
Comment on attachment 367759 [details]
Patch

Can we create a test to demonstrate the bug we fixed?