Skip to content

Releases: minimagick/minimagick

v4.6.0

03 Dec 14:46
Compare
Choose a tag to compare
  • Fix Image#exif raising an error when an exif value contains a "=" chracter
  • Fix Image#exif raising an error when an exif value spans on multiple lines
  • Introduced Image#data as an alternative to Image#details, which uses ImageMagick's ability to retrieve identify -verbose output in JSON format. This eliminates possibility of any parsing errors. It is available on ImageMagick 6.8.8-3 or above.
  • Allow Image#format to accept a hash of options as a third argument, which will be added to the convert command before original path is added
  • Support Pathname in Image.new, as we already supported Pathname in Image.open
  • Added Tool#stdout which adds - to the command (the same as Tool#stdin does)

v4.5.1

25 Mar 09:21
Compare
Choose a tag to compare
  • Fixed MiniMagick logging commands by default

v4.5.0

20 Mar 14:48
Compare
Choose a tag to compare

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

v4.4.0

06 Feb 14:08
Compare
Choose a tag to compare
  • Using MiniMagick::Image#format now works when the image instance is a layer/frame/page.
  • Calling MiniMagick::Tool#clone as a way of adding the -clone CLI option now works properly (before it would call Object#clone).
  • Badly encoded lines in identify -verbose don't cause an error anymore in MiniMagick::Image#details.
  • MiniMagick::Image#details doesn't hang anymore when clipping paths are present
  • Added MiniMagick::Image#tempfile for accessing the underlying temporary file.

v4.3.6

12 Oct 07:46
Compare
Choose a tag to compare
  • Restore the old behaviour of MiniMagick::Image#respond_to? by looking at mogrify -help and finding the method. This restores compatibilty with CarrierWave.

v4.3.5

03 Oct 16:33
Compare
Choose a tag to compare
  • mini_magick/version.rb is now properly required in the main file (previously MiniMagick.version was throwing a NoMethodError unless you explicitly required mini_magick/version.rb)

v4.3.4

02 Oct 15:06
Compare
Choose a tag to compare
  • Fix MiniMagick::Tool#tile method being applied as a creation operator (tile:) instead of an option (-tile)

v4.3.3

10 Sep 09:02
Compare
Choose a tag to compare
  • Fixed a bug where, if you would reference any image info inside Image#format {} or Image#combine_options {}, this info would be cached even after these methods were executed, leaving the MiniMagick::Image instance with stale data.

v4.3.2

10 Sep 09:00
Compare
Choose a tag to compare
  • Fixed MiniMagick::Image.new("...").format("<ext>") not working if the image didn't have an extension.

v4.3.1

03 Sep 08:31
Compare
Choose a tag to compare
  • Reverted making MiniMagick configuration thread safe, until we figure out what caused #328.