tinyimg 1.0.0
Lightweight image manipulation library for Cloudflare Workers
Loading...
Searching...
No Matches
TinyEncodeOpts Struct Reference

Options an encoder honors. More...

#include <image.h>

Public Attributes

uint8_t quality
uint8_t lossless
uint8_t progressive
uint8_t strip_metadata
uint8_t effort
 How much computation the encoder may spend; a TinyEffort.

Detailed Description

Options an encoder honors.

Member Data Documentation

◆ effort

uint8_t TinyEncodeOpts::effort

How much computation the encoder may spend; a TinyEffort.

Zero is TINYIMG_EFFORT_FANCY, so a zeroed structure asks for the work every caller got before this field existed.

◆ lossless

uint8_t TinyEncodeOpts::lossless

Non-zero to use a format's lossless mode where it has one.

◆ progressive

uint8_t TinyEncodeOpts::progressive

Non-zero to write a progressive or interlaced stream.

◆ quality

uint8_t TinyEncodeOpts::quality

Quality for a lossy format, 0 to 100.

◆ strip_metadata

uint8_t TinyEncodeOpts::strip_metadata

Non-zero to drop EXIF and other metadata from the output.


The documentation for this struct was generated from the following file: