Open Bug 870026 Opened 11 years ago Updated 2 years ago

Expose GetImageData() on image elements

Categories

(Core :: Graphics: ImageLib, defect)

x86
macOS
defect

Tracking

()

People

(Reporter: jrmuizel, Unassigned, NeedInfo)

Details

(Whiteboard: [client-side-image-upload])

This would be similar to getImageData on canvas. While we're here we should make it so that this getImageData is asynchronous so that we don't need to block on decode.
Another thing that is worth having here is the ability to choose between correcting to the users screen color space, no color correction, and srgb color correction.
Whiteboard: [client-side-image-upload]
Are there any corresponding spec bugs?
(In reply to Masatoshi Kimura [:emk] from comment #2)
> Are there any corresponding spec bugs?

Not yet.
Flags: needinfo?(jmuizelaar)
(In reply to Masatoshi Kimura [:emk] from comment #2)
> Are there any corresponding spec bugs?
There are some detailed discussion threads about this on the whatwg list (re color correction/colorspace conversion, etc). IIRC they were about the proposed ImageBitmap API, which allows decoding an Image or Blob or etc to a buffer full of pixel data asynchronously.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.