Bug 202458
Summary: | createImageBitmap with resize option fails on Mac and iOS | ||
---|---|---|---|
Product: | WebKit | Reporter: | Chris Lord <clord> |
Component: | Canvas | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | dino, heycam, mail+github, sabouhallawa, simon.fraser, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 179191 | ||
Bug Blocks: |
Chris Lord
This is tested by imported/w3c/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-resize.html, which passes on Linux.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/55921692>
Alexander
Just wanted to see if there are any updates on this one?
`createImageBitmap` has been around for a while, but because of various bugs it's still hard to use (this is one of them).
A few examples of use-cases for `createImageBitmap`:
- Crop images on-device
- Resize images on-device before uploading to a server
- For example a photo from `<input type="file" capture="environment">`.
- On-device image resize has long been problematic, with the main workaround being the Canvas element, but every implementation I've seen has been buggy or hard to use, for example due to iOS canvas memory limits.
- Take snapshots from a video feed
- Extract sprites from a sprite sheet
- Take non-rotated image pixels with an associated EXIF tag and output rotated pixels (without any EXIF), or put differently strip EXIF and apply rotation to image data.
- This is useful since many server-side systems prefer to handle all images without accompanying exif rotation data.