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 ) ( 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 ) ( ( width, height ), duration, num_frames, has_audio ) = HydrusVideoHandling.GetFFMPEGVideoProperties( path )

View File

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