Self hosted FLOSS fitness/workout, nutrition and weight tracker
avif: updated supported images formats with avif
Max Pylypenko6d1bdcbc5d84
diff --git a/wger/utils/images.py b/wger/utils/images.pyindex ebb4c0322..7140bba55 100644--- a/wger/utils/images.py+++ b/wger/utils/images.py@@ -39,7 +39,7 @@ def validate_image_static_no_animation(value):raise ValidationError('File is not a valid image.')# Supported types- allowed_formats = {'jpeg', 'jpg', 'png', 'webp'}+ allowed_formats = {'jpeg', 'jpg', 'png', 'webp', 'avif'}if img_format not in allowed_formats:raise ValidationError(f'File type is not supported. Allowed formats: {", ".join(allowed_formats)}.'