citizenlab
citizenlab copied to clipboard
Bump mini_magick from 4.12.0 to 4.13.1 in /back
Bumps mini_magick from 4.12.0 to 4.13.1.
Release notes
Sourced from mini_magick's releases.
v4.13.1
- Revert an optimization to save an
identifycall when retrieving image information by doing this work while validating on create, as this caused validation to hang for some SVG files.v4.13.0
Warnings about
convertcommand being deprecated on ImageMagick 7 are now ignored.The next major version of MiniMagick will switch to using
magickon IM7, as it might not be fully compatible withmagick convert.If processing images is returning warnings (e.g. TIFF images tend to do that), but they're otherwise fine, you can prevent MiniMagick from forwarding warnings to standard error:
MiniMagick.configure do |config| config.warnings = false endWhen the ImageMagick subprocess has been abruptly killed by the operating system (e.g. OOM kill), in which case the exit status will be unknown, MiniMagick will now handle this gracefully.
When validating the image, the cheap info will now be automatically stored on the
MiniMagick::Imageobject, so a subsequent call to#type,#width,#height,#dimensions,#sizeor#human_sizewill not callidentifyagain.The
posix-spawnshell backend has been deprecated (see minimagick/minimagick#558).Ruby uses vfork since Ruby 2.2, so posix-spawn doesn't provide performance benefits on relevant Ruby versions anymore. Additionally, Ruby 3 switched to non-blocking pipes by default, which should hopefully resolve deadlocks with
open3(see minimagick/minimagick#347 and minimagick/minimagick#437). Due to this change, posix-spawn is currently incompatible with Ruby 3.
MiniMagick::Image#mime_typehas been deprecated, due to returning incorrect MIME type for formats not starting withimage/*.ImageMagick does have a way to return the MIME type, but it requires reading the whole image, which is significantly slower. It's recommended to use Marcel or MimeMagic for determining MIME type from magic header. Alternatively, you can use mime-types or MiniMime for obtaining MIME type from file extension or from
MiniMagick::Image#type.Ruby 2.3+ is now required.
Commits
58a6a5eBump to 4.13.175432bbRevert "Save format, dimensions, size, etc when validating to avoid unnecessa...ca8d406Bump to 4.13.0c39fbefIgnore warnings about convert command being deprecated on IM7c7c5d2fAllow silencing warningsece9f09Save format, dimensions, size, etc when validating to avoid unnecessary secon...6cc4ecfAlso add explicit permissions to workflows (#566)fe2951cFix CI badge (#564)ac2a94aDeprecateMiniMagick::Image#mime_type67547cdHandle OOM kills- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)