Use FFMPEG for AVIF sequences

This commit is contained in:
Paul Friederichsen 2023-08-02 05:42:41 -05:00
parent 2887be614c
commit 537e902813
2 changed files with 1 additions and 3 deletions

View File

@ -400,7 +400,7 @@ def GetFileInfo( path, mime = None, ok_to_look_for_hydrus_updates = False ):
( width, height ) = HydrusImageHandling.GetPSDResolution( path )
elif mime in HC.VIDEO:
elif mime in HC.VIDEO or mime == HC.IMAGE_AVIF_SEQUENCE:
( ( width, height ), duration, num_frames, has_audio ) = HydrusVideoHandling.GetFFMPEGVideoProperties( path )

View File

@ -1229,8 +1229,6 @@ def RawOpenPILImage( path ) -> PILImage.Image:
except Exception as e:
print(e)
raise HydrusExceptions.DamagedOrUnusualFileException( 'Could not load the image--it was likely malformed!' )