Skip to content

Releases: minimagick/minimagick

v4.12.0

07 Dec 08:55
2a4d0fc
Compare
Choose a tag to compare
  • Added new tmpdir configuration, which defaults to Dir.tmpdir (#541)
    MiniMagick.configure do |config|
      config.tmpdir = File.join(Dir.tmpdir, "/my/new/tmp_dir")
    end
  • Don't leave temporary files lying around when MiniMagick::Image#format failed (#547)
  • Replace File.exists? with File.exist?, which should fix Ruby 3.2 compatibility (#550)
  • Fixed a case where the log could not be parsed correctly when there were multiple lines (#540)
  • Added status to the exception message when the ImageMagick command fails (#542)
  • Allow passing format to Image#get_pixels so we can request "RGBA" pixels (#537)
  • Suppress warning to ambiguous argument (#529)
  • Use Thread#join with a timeout argument instead of the Timeout standard library (#525)

v4.11.0

06 Nov 16:24
Compare
Choose a tag to compare
  • Fix fetching metadata when there are GhostScript warnings (#522)
  • Fixed some method redefined warnings (#505)
  • Added MiniMagick::Image.get_image_from_pixels (#516)
  • extend MiniMagick::Tool#stack to support arguments so that it can be used with Active Storage

v4.10.1

06 Jan 13:12
Compare
Choose a tag to compare
  • Still pick up ImageMagick over GraphicsMagick if both are installed

v4.10.0

06 Jan 13:12
Compare
Choose a tag to compare
  • Prioritize discovery of ImageMagick 7 over 6 if both are installed (@drnic)
  • Add MiniMagick::Image#landscape? and #portrait? methods for checking orientiation (@theomarkkuspaul)
  • Fix Ruby 2.7 warnings (@kamipo)

v4.9.5

18 Jul 13:58
Compare
Choose a tag to compare
  • Fixed MiniMagick::Image.open not working with non-ASCII filenames anymore after previous version (thanks to @meganemura)

v4.9.4

11 Jul 18:43
Compare
Choose a tag to compare
  • Fixed a remote shell execution vulnerability when using MiniMagick::Image.open with URL coming from unsanitized user input (thanks to @rootxharsh)
  • Fixed some Ruby warnings (thanks to @koic)

v4.9.3

08 Apr 22:15
Compare
Choose a tag to compare
  • make MiniMagick::Tool not respond to everything

v4.9.2

21 Sep 14:26
Compare
Choose a tag to compare
  • Fix breakage for MRI 2.3 and below

v4.9.1

21 Sep 09:39
Compare
Choose a tag to compare
  • Properly handle EXIF parsing with ImageMagick 7
  • Show an informative exception message on Timeout::Error
  • Wait for the MiniMagick command to terminate after sending SIGTERM with open3

v4.9.0

21 Sep 00:42
Compare
Choose a tag to compare

New features

  • Support ImageMagick 7

    • MiniMagick::Tool::Convert will now generate magick convert commands (and the same for others)
    • MiniMagick::Tool::Magick was added for generating magick commands
  • MiniMagick.cli_prefix was added to configure a prefix for commands

    MiniMagick.cli_prefix = "firejail"
    
    MiniMagick::Tool::Magick.new { |magick| ... } # executes `firejail magick ...`

Other Improvements

  • Fix deadlocks when using posix-spawn as a shell backend

  • Fix Errno::ESRCH sometimes being raised when the ImageMagick command would time out

  • #label and #caption will now generate regular options

    MiniMagick::Tool::Convert.new do |convert|
                             # BEFORE:       NOW:
      convert.label("foo")   # label:foo    -label foo
      convert.caption("bar") # caption:bar  -caption bar
    end
  • Add pango creation operator

    MiniMagick::Tool::Magick.new do |magick|
      magick.pango("...") # pango:...
      # ...
    end
  • Handle GraphicsMagick returning unknown in EXIF data