gems mini_magick 4.5.0

latest releases: 5.1.2, 5.1.1, 5.1.0...
8 years ago

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 to Rails.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 deleting MiniMagick::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 to MiniMagick::Tool.new

Don't miss a new mini_magick release

NewReleases is sending notifications on new releases.