New features
-
Added the ability for ImageMagick commands to accept standard input:
identify = MiniMagick::Tool::Identify.new identify.stdin # adds "-" identify.call(stdin: image_content)
-
Added ability to capture stdout, stderr and exist status by passing a block to
MiniMagick::Tool#call
:compare = MiniMagick::Tool::Compare.new # build the command compare.call do |stdout, stderr, status| # ... end
-
Added ability to assign
MiniMagick.logger
toRails.logger
Bug fixes
- The value of
MiniMagick.whiny
configuration option is now respected - The new filename when calling
#format
is now generated better when calling on a layer - Delete
*.cache
files generated by .mpc files when deletingMiniMagick::Image
Deprecations
-
Whiny option should now be passed as a keyword argument:
MiniMagick::Tool::Identify.new(false) # deprecated MiniMagick::Tool::Identify.new(whiny: false) # good
-
Passing the whiny argument to
MiniMagick::Tool#call
is deprecated, it should now always be passed toMiniMagick::Tool.new