Bug 197074

Summary: Images with orientation = usesWidthAsHeight() do not scale properly
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: ImagesAssignee: Said Abou-Hallawa <sabouhallawa>
Status: NEW ---    
Severity: Normal CC: darin, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
test case
none
Patch sabouhallawa: review?

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?