[Webkit-unassigned] [Bug 180552] [WK2] Expose image via WKBundleHitTestResult API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 8 16:55:25 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=180552

--- Comment #10 from Zach Li <zacharyli323 at gmail.com> ---
(In reply to Simon Fraser (smfr) from comment #9)
> (In reply to Zach Li from comment #8)
> > (In reply to Simon Fraser (smfr) from comment #7)
> > > Comment on attachment 328872 [details]
> > > Patch v2
> > > 
> > > View in context:
> > > https://bugs.webkit.org/attachment.cgi?id=328872&action=review
> > > 
> > > > Source/WebKit/WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:185
> > > > +    graphicsContext->drawImage(bitmapImage, {{ }, sizeRespectingOrientation});
> > > 
> > > Does this do the correct thing for images with EXIF rotations?
> > 
> > I took a look at -drawImage() function and by default,
> > DoNotRespectImageOrientation is passed to ImagePaintingOptions, so this
> > means it would not auto-rotate images with EXIF orientation tags? (Sorry, I
> > am not so familiar with this area of code)
> > 
> > But at least for my use case, image orientation does not matter.
> 
> But if the image is rotated, you'll get an image with the wrong dimensions,
> and squished. So I think you have to care. Did you test it?

If the image is rotated, doesn't sizeRespectingOrientation give me the correct dimension, hence not causing the image to be squished?

I just learned images with EXIF rotations from you, so haven't tested this case yet.

-- 
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/20171209/f9c0c574/attachment.html>


More information about the webkit-unassigned mailing list