Map of MIME Type to each ImageFormat
or SerializationFormat
.
Instance of toPojo to use when serializing objects
Adjust brightness of image
Image
Format to save result as
Compresses arbitrary data using the provided format and any options
Data to compress
Format to use
Options
Saves an image in the provided format, performing no operations on the image
Image
Format to save result as
Crops an image and returns a Buffer containing the result in the provided format
Image
Height/Width to resize to
Format to save result as
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decompresses arbitrary data using the provided format and any options
Data to decompress
Format to use
Deserializes an object serialized using one of the available algorithms, returning the result as an object
Data to deserialize
Algorithm to deserialize with
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Hashes data using the provided algorithm, returning a node.js Buffer.
Hashes an object using the provided algorithm, returning a node.js Buffer.
Hashes data using the provided algorithm, returning a node.js Buffer.
Extracts a SerializationFormat
or ImageFormat
from the specified HTTP header,
or defaults to the SerializationFormat
or Image Format
in the options of the encoder.
HTTP Request
Name of the header to extract from
Extracts a ImageFormat
from the specified HTTP header,
or defaults to the Image Format
in the options of the encoder.
HTTP Request
Name of the header to extract from
Extracts a SerializationFormat
from the specified HTTP header,
or defaults to the SerializationFormat
in the options of the encoder.
HTTP Request
Name of the header to extract from
Resizes an image and returns a Buffer containing the result in the provided format
Image
Height/Width to resize to
Format to save result as
Serializes an object using one of the available algorithms, returning the result as a Buffer or a string
Object to serialize
Algorithm to serialize with
Use toPojo
on the object before serializing
If true, Buffers will be encoded with this.encodeBuffer
when encountered.
Generates a unique ID using one of the available algorithms, returning the result as a Buffer, string or number.
Algorithm to use to generate the unique id
Extra args to pass to the ID generation function
Generated using TypeDoc
Combined map of all
SerializationFormat
andImageFormat
entries to their respective MIME Types