Skip to content

Commit

Permalink
decorate mini_magick with a ping too
Browse files Browse the repository at this point in the history
  • Loading branch information
cziaarm committed Feb 27, 2024
1 parent 746a9be commit 9b46b0d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/mini_magick/image/info_decorator.rb
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 9b46b0d

Please sign in to comment.