Bot releases are hidden (Show)
MiniMagick.with_cli
is now thread-safe, as well as other configuration optionsThis version has been yanked as it holds a backwards incompatibility which breaks CarrierWave.
MiniMagick.with_cli
will now restore the old CLI even when errors occur.MiniMagick::Image#size
now returns a string with the filesize unit includedAdded MiniMagick::Tool#stack
for building ImageMagick stacks:
MiniMagick::Tool::Convert.new do |convert|
convert << "wand.gif"
convert.stack do |stack|
stack << "wand.gif"
stack.rotate(30)
end
convert << "images.gif"
end
convert wand.gif \( wand.gif -rotate 90 \) images.gif
When dealing with very large images, it can happen that your process runs our of memory (by raising Errno:: ENOMEM
). You can now tell MiniMagick to use posix-spawn for executing shell commands, which uses much less memory:
MiniMagick.configure do |config|
config.shell_api = "posix-spawn"
end