Use magick command from ImageMagick #854
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#854
Loading…
Reference in a new issue
No description provided.
Delete branch "nil/akkoma:develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With ImageMagick version 7 the
convert
command has been deprecated in favour ofmagick
. Callingconvert
instead results in the logs being spammed with warning messages.The mogrify Elixir wrapper also runs
magick
with themogrify
argument in current relases.We still support environments without ImageMagick 7 readily available. E.g. current Debian stable doesn’t have it yet and we even support oldstable atm. So I don’t think we can just indiscriminately migrate everyone to
magick
yet.Looking at their code they only do seem to do so by default on Windows atm, but they provide config options to select which commands are used.
Note it always uses
magick <command>
, while this patch adaptsconvert
tomagick
only. The latter form appears to work too for simple operations at least, but idk if there are ambiguities or other reasons to prefermagick convert
instead.I guess we could either piggy-back on
mogrify
’s config settings or introduce our own for both running the actual command and availability checks,My experience with Elixir is somewhat limited so far, but I can try to amend this PR accordingly.
The
magick convert
variant is deprecated as well and will result in the same kind of warning as runningconvert
.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.