Skip to content

common.DecodeJPEG

Decode a JPEG image.

Syntax

{rgba, width:int, height:int} common.DecodeJPEG(data)

Parameters

data The image data to decode.

Return value

Returns rgba, width and height of the decoded image.