Skip to content

Commit 1e20622

Browse files
add avif to valid_exts
1 parent be879e6 commit 1e20622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgdiet/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def save(
329329
logger = setup_logger(verbose)
330330
src_path = Path(source)
331331
dst_path = Path(target)
332-
valid_exts = {".jpg", ".jpeg", ".png", ".bmp", ".tif", ".tiff", ".webp"}
332+
valid_exts = {".jpg", ".jpeg", ".png", ".bmp", ".tif", ".tiff", ".webp", ".avif"}
333333

334334
# Add extension check and warning
335335
if dst_path.suffix and dst_path.suffix.lower() in valid_exts and dst_path.suffix.lower() != '.webp':

0 commit comments

Comments
 (0)