Consts
jpgStartOfImage = [255'u, 216'u]
Procs
proc decodeJpg(data: seq[uint8]): Image {...}{.raises: [PixieError], tags: [].}
- Decodes the JPEG into an Image.
proc decodeJpg(data: string): Image {...}{.inline, raises: [PixieError], tags: [].}
- Decodes the JPEG data into an Image.
proc encodeJpg(image: Image): string {...}{.raises: [PixieError], tags: [].}
- Encodes Image into a JPEG data string.