Open Bug 1381098 Opened 7 years ago Updated 1 year ago

imageBitmap should provide an api to pull out raw pixel data (unmodified) without having to draw it to a canvas or a renderBuffer. This should be able to run in a webworker

Categories

(Core :: Graphics: Canvas2D, enhancement, P3)

enhancement

Tracking

()

UNCONFIRMED
Tracking Status
firefox57 --- wontfix

People

(Reporter: larry, Unassigned)

Details

(Keywords: feature, Whiteboard: [gfx-noted])

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 Steps to reproduce: This would be a new api request (for all browsers). imageBitmap should provide a method to pull out the raw pixels into an array. This should be operable in a web worker. Actual results: This can only be done now drawing into a 2d context and using getImageData on the main thread. It can also be done using a 3d WebGL context. But it's a tremendous amount of code to do a simple operation that is sometimes needed. Firefox may be returning the correct data in getImageData, but Chrome seems to process the alpha state of the original and change the values from their original raw data. This conversion can be turned off in firefox but it's not consistent between browsers. A new and consistent API is needed to access the raw unmodified values.
Severity: normal → enhancement
Component: Untriaged → Canvas: 2D
Product: Firefox → Core
Summary: imageBitmap should provide an api to pull out raw pixel data (unmodified) without having to draw it to a canvas or a renderBuffer → imageBitmap should provide an api to pull out raw pixel data (unmodified) without having to draw it to a canvas or a renderBuffer. This should be able to run in a webworker
Hello Larry, Is there a spec for this ?
Flags: needinfo?(larry)
Whiteboard: gfx-noted, feature
Keywords: feature
Whiteboard: gfx-noted, feature → [gfx-noted]
Severity: normal → S3

Clear a needinfo that is pending on an inactive user.

Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE.

For more information, please visit BugBot documentation.

Flags: needinfo?(larry)
You need to log in before you can comment on or make changes to this bug.