image.img:jpeg_data
Declaration
lua
img:jpeg_data([quality])
Description
Get raw JPEG binary data.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
quality | number | Optional | 1.0 | Quality 0.0-1.0 |
Return Values
| Type | Description |
|---|---|
| string | Raw JPEG bytes |
Example
lua
local data = img:jpeg_data(0.8)