Skip to main content

Module generate

Module generate 

Source
Expand description

Generates and stores still and animated thumbnail variants.

ConstantsΒ§

BYTES_PER_PIXEL πŸ”’
Bytes the decoder is budgeted per pixel of the picture it is asked for.
PNG πŸ”’
Content type of every still thumbnail tuwunel generates.
STILL_NAME πŸ”’
Filename a generated still thumbnail is disposed under, per the media repository specification, rather than the source filename.

FunctionsΒ§

animates_at πŸ”’
Whether this source yields an animated variant at these dimensions.
decoder_limits πŸ”’
Creates decoder limits from the configured pixel budget.
encode_png πŸ”’
Encodes one still thumbnail into a PNG buffer.
header_dim πŸ”’
The dimensions this picture’s own header declares.
limited_reader πŸ”’
Creates an image reader with the configured allocation limit.
picture_dim πŸ”’
The size a picture that may not be served stands in at.
reader πŸ”’
Creates an image reader for encoded picture bytes.
thumbnail_generate πŸ”’
Resizes a decoded picture to the requested dimensions.