chore: minify svg

This commit is contained in:
Chirag Aggarwal
2025-08-04 14:34:45 +05:30
parent 10b82716e4
commit 048dbe81c7
+3 -1
View File
@@ -475,7 +475,9 @@ App::get('/v1/avatars/favicon')
if ('svg' === $outputExt) { // Skip crop, Imagick isn\'t supporting svg files
$sanitizer = new SvgSanitizer();
$cleanSvg = $sanitizer->sanitize($data);
$cleanSvg = $sanitizer
->minify()
->sanitize($data);
if ($cleanSvg === false) {
throw new \Exception('SVG sanitization failed');
}