AssetFormatKind
in package
Media kind served by a processor. Call sites (managers, uploaders) use it to say what they allow in a given context: an avatar or category icon takes `Raster` and `Vector`, a discussion attachment takes `Raster` and `Video`, but never `Vector` (SVG from an anonymous user is needless exposure, see {@see SvgSanitizer}).
Deliberately not derived from the extension at the call site: extensions belong to the processors (AssetFormatProcessor::getExtensions()) and the registry only collects them.
Table of Contents
Cases
- Raster
- Raster images handled by GD (jpg/png/gif/webp): resize and watermark.
- Vector
- Vector (svg): stored unchanged, no resize or watermark.
- Video
- Video (mp4/mov): the original plus poster variants from the first frame.
Cases
Raster
Raster images handled by GD (jpg/png/gif/webp): resize and watermark.
Vector
Vector (svg): stored unchanged, no resize or watermark.
Video
Video (mp4/mov): the original plus poster variants from the first frame.