Expand description
Images made ready to share: decoded, turned upright, fitted to a size and a byte budget, and
re-encoded. Re-encoding drops every byte of metadata the original carried, camera EXIF and
GPS included. Animated GIF and WebP keep their animation: they pass through when they
already fit, keeping only the blocks that draw them. An animated PNG is shared as its first
frame. strip does the same without re-encoding, for an image too large to.
Structs§
- Prepared
- A prepared image and the extension its bytes are.
Enums§
- Image
Use - What the image is for, which sets its size and byte budget.
Functions§
- mime_
for - The MIME type for a
Prepared::extension. - prepare
- Make
bytesready to share asusage: upright, within its size, within its byte budget, and with no metadata. SVG is refused, as Vector never ships a foreign SVG to other people. - strip
byteswith every byte of metadata cut out and nothing re-encoded, for a picture too large to decode.Nonefor a format this can’t strip, or one that doesn’t parse.