Quick hack to get things booting without

Will make better later
This commit is contained in:
Hydrus Network Developer 2023-08-05 15:00:29 -05:00
parent bbf11753ec
commit eb2825e69b
No known key found for this signature in database
GPG Key ID: 76249F053212133C
1 changed files with 14 additions and 5 deletions

View File

@ -26,11 +26,20 @@ from PIL import ImageFile as PILImageFile
from PIL import Image as PILImage
from PIL import ImageCms as PILImageCms
from pillow_heif import register_heif_opener
from pillow_heif import register_avif_opener
try:
from pillow_heif import register_heif_opener
from pillow_heif import register_avif_opener
register_heif_opener(thumbnails=False)
register_avif_opener(thumbnails=False)
HEIF_OK = True
except:
HEIF_OK = False
register_heif_opener(thumbnails=False)
register_avif_opener(thumbnails=False)
from hydrus.core import HydrusConstants as HC
from hydrus.core import HydrusData