[webkit-gtk] Expose "ShouldRespectImageOrientation" setting?

Matthew Barnes mbarnes at redhat.com
Sun Mar 3 11:15:03 PST 2013


I see that WebCore is capable of handling EXIF orientation embedded in
some types of images.  The feature is disabled by default though, and is
controlled through a "m_shouldRespectImageOrientation" boolean in the
WebCore::Settings class.

Would it be possible (or appropriate) to expose that setting through
WebKitWebSettings?  Perhaps as a "respect-image-orientation" property?

Use case: Displaying image attachments in Evolution.

Now granted Evolution could decode the Base64 data from the MIME part,
read the binary data into a GdkPixbuf, look for an orientation setting,
rotate the image, dump the rotated image to a memory buffer and encode
the buffer back to Base64 before embedding it an <img> tag...

But I'd rather just flip a switch and let the WebKitWebView handle it.

This would help me solve

Matthew Barnes

More information about the webkit-gtk mailing list