Crate imageoptimize

Source

Structs§

CropProcess
Crop process crops the image.
GrayProcess
Gray process changes the image to gray mode.
ImageInfo
LoaderProcess
Loader process loads the image data from http, file or base64.
OptimProcess
Optim process optimizes the image of multi format.
ProcessImage
ResizeProcess
Resize process resizes the image size.
WatermarkProcess
Watermark process adds a watermark over the image.

Enums§

ImageError
ImageProcessingError
WatermarkPosition

Constants§

PROCESS_CROP
PROCESS_DIFF
PROCESS_GRAY
PROCESS_LOAD
PROCESS_OPTIM
PROCESS_RESIZE
PROCESS_WATERMARK

Traits§

Process

Functions§

avif_decode
Decode data from avif format, it supports rgb8, rgba8, rgb16 and rgba16.
load
run
Run process image task. Load task: [“load”, “url”] Resize task: [“resize”, “width”, “height”] Gray task: [“gray”] Optim task: [“optim”, “webp”, “quality”, “speed”] Crop task: [“crop”, “x”, “y”, “width”, “height”] Watermark task: [“watermark”, “url”, “position”, “margin left”, “margin top”] Diff task: [“diff”]
run_with_image
to_gif