Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 4b29421

Browse files
author
Sadok
committedSep 11, 2024
Add pillow_avif lib
1 parent b747723 commit 4b29421

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎smartcrop/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
import os
77
import math
88

9+
from PIL import Image
10+
11+
try:
12+
import pillow_avif
13+
except ImportError:
14+
pass
15+
916
# Algorithm parameters
1017
COMBINE_FACE_WEIGHT = 10
1118
COMBINE_FEATURE_WEIGHT = 10

0 commit comments

Comments
 (0)