MediaFile: replace APNGInspector with ExifTool.
Replace our own handwritten APNG parser with ExifTool. This makes ExifTool a hard requirement for handling APNGs.
This commit is contained in:
@@ -80,7 +80,7 @@ class MediaFile::Image < MediaFile
|
||||
end
|
||||
|
||||
def is_animated_png?
|
||||
file_ext == :png && APNGInspector.new(file.path).inspect!.animated?
|
||||
file_ext == :png && metadata.fetch("PNG:AnimationFrames", 1) > 1
|
||||
end
|
||||
|
||||
# @return [Vips::Image] the Vips image object for the file
|
||||
|
||||
Reference in New Issue
Block a user