Recompress uploaded images to thumbnailed AVIF via mediapreview
PUT /_api/files now runs raster uploads through mediapreview.dispatch (temp file for format routing: pyvips, ffmpeg for HEIC/HEIF/AVIF), storing the untouched original as <hash>.orig<ext> and serving the AVIF derivative <hash>.avif in links. SVG/GIF and failed conversions fall back to plain <hash><ext> storage. FileStore.delete removes the whole hash pair. Adds mediapreview[standard] dependency.
This commit is contained in:
@@ -25,6 +25,7 @@ dependencies = [
|
||||
"markdown-it-py>=4.2.0",
|
||||
"maxminddb>=3.1.1",
|
||||
"mdit-py-plugins>=0.6.1",
|
||||
"mediapreview[standard]>=0.2.3",
|
||||
"platformdirs>=4.11.5",
|
||||
"pygments>=2.20.0",
|
||||
"python-slugify>=8.0.4",
|
||||
|
||||
Reference in New Issue
Block a user