diff --git a/app/mini_magick/image/info_decorator.rb b/app/mini_magick/image/info_decorator.rb new file mode 100644 index 00000000..9b5181b5 --- /dev/null +++ b/app/mini_magick/image/info_decorator.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +# OVERRIDE MiniMagick v4.11.0 + +module MiniMagick + class Image + module InfoDecorator + + def identify + MiniMagick::Tool::Identify.new do |builder| + yield builder if block_given? + builder << '-ping' + builder << path + end + end + end + end +end + +MiniMagick::Image::Info.prepend(MiniMagick::Image::InfoDecorator)