[Webkit-unassigned] [Bug 221005] Incorrect sizing of uploaded images when using background-size:cover
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 27 20:35:35 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=221005
--- Comment #7 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
I take that back. The floor.jpg image has an EXIF rotation, so we get to GraphicsContext::drawPlatformImage() and hit this branch:
if (options.orientation() != ImageOrientation::None) {
if (auto transform = options.orientation().transformFromDefault(imageSize).inverse())
subimageRect = transform.value().mapRect(subimageRect);
}
which is where I think things go wrong. We also hit the subsequent assertion:
ASSERT(CGImageGetHeight(subImage.get()) == currHeight - CGRectIntegral(srcRect).origin.y);
Attaching a standalone testcase.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210128/ba42bded/attachment-0001.htm>
More information about the webkit-unassigned
mailing list