Bug 252927 - Add new option imageOrientation: "none" to createImageBitmaps's
Summary: Add new option imageOrientation: "none" to createImageBitmaps's
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-24 13:50 PST by Yi Xu
Modified: 2023-03-03 13:51 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Xu 2023-02-24 13:50:31 PST
Currently, the createImageBitmap API has 2 imageOrientation, "from-image" and "flipY" [1]. It's different from CSS spec, where it had another option called "none" for ignoring the image orientation metadata [2]

We should probably seek to harmonize the two, if possible.

We should add the new imageOrientation option "none" to createImageBitmap

[1] https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#dom-imagebitmapoptions-imageorientation

[2] https://www.w3.org/TR/css-images-3/#the-image-orientation
Comment 1 Radar WebKit Bug Importer 2023-03-03 13:51:14 PST
<rdar://problem/106210546>