Use FFMPEG for AVIF sequences
This commit is contained in:
parent
2887be614c
commit
537e902813
|
@ -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 )
|
||||
|
||||
|
|
|
@ -1228,8 +1228,6 @@ def RawOpenPILImage( path ) -> PILImage.Image:
|
|||
pil_image = PILImage.open( path )
|
||||
|
||||
except Exception as e:
|
||||
|
||||
print(e)
|
||||
|
||||
raise HydrusExceptions.DamagedOrUnusualFileException( 'Could not load the image--it was likely malformed!' )
|
||||
|
||||
|
|
Loading…
Reference in New Issue