chore(deps): update dependency mini_magick to v5 #423
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
'~> 4.13', '>= 4.13.2'
->'~> 5.0', '>= 5.0.1'
Release Notes
minimagick/minimagick (mini_magick)
v5.0.1
Compare Source
MiniMagick::Image#write
doesn't delete the internal tempfile anymore, which restores use cases like:Prevented
MiniMagick::Image#to_ary
being called by ruby in certain cases, such as[image].flatten(1)
.v5.0.0
Compare Source
Improvements
New class method shorthands were added for the tool API:
BEFORE
MiniMagick::Tool::Convert.new { |convert| ... }
MiniMagick::Tool::Identify.new { |convert| ... }
...
AFTER
MiniMagick.convert { |convert| ... }
MiniMagick.identify { |identify| ... }
...
Some features won't be supported, such as
MiniMagick.timeout
(GraphicsMagick doesn't support time limits),Image#data
(GraphicsMagick doesn't support JSON image details) andImage#exif
(returns different format).As a result,
MiniMagick.cli
andMiniMagick.processor
configuration has been removed as well.MiniMagick::Image
andMiniMagick.convert
now usemagick
instead of the deprecatedmagick convert
on ImageMagick 7. This should be backwards compatible, but there might be small differences in options and behavior.Removed deprecated
posix-spawn
shell backend, along withMiniMagick.shell_api
configuration.Ruby 2.x has long used vfork, so there is no performance advantage of using
posix-spawn
. Additionally, Ruby 3.x has switched to non-blocking pipes, which should resolve deadlocks people experienced with Open3. See https://github.com/minimagick/minimagick/pull/558 for more details.Removed obsolete
Image#run_command
.Removed deprecated
Image#mime_type
, as it wasn't accurate.MIME type from file content should be determined either using Marcel or MimeMagic, or mime-types or MiniMime using
Image#type
.The
MiniMagick::Tool::*
classes have been deprecated in favor of the class-level interface.The
MiniMagick.timeout
configuration now uses the native ImageMagick timeout environment variable$MAGICK_TIME_LIMIT
. This variable doesn't support timeouts lower than 1 second.The
MiniMagick.whiny
configuration has been renamed toMiniMagick.errors
.Images are no longer automatically validated on
Image.open
,Image.read
orImage.create
.The deprecated
Image#details
method has been removed in favor of the more reliableImage#data
.The
Image#respond_to_missing?
method has been removed, meaning thatImage#respond_to?
will returnfalse
for ImageMagick option methods.As a result, the undocumented
MiniMagick::Tool.option_methods
method has been removed as well, along with the no-opMiniMagick.reload_tools
.Removed the obsolete
MiniMagick.processor_path
configuration, which as mostly an alias forMiniMagick.cli_path
.Removed the deprecated
MiniMagick.debug
configuration in favor ofMiniMagick.logger.level = Logger::DEBUG
.Removed the unused
MiniMagick.validate_on_write
configuration.Additional
Pathname#open
orURI#open
options forImage.open
need to be passed in as keyword arguments instead of a hash.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.