mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
For ImageMagick 6 <-> 7 compatibility.
The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"
This commit is contained in:
parent
475e4abb40
commit
bf264774c5
@ -13,6 +13,11 @@ image() {
|
||||
fi
|
||||
}
|
||||
|
||||
# For ImageMagick 6 <-> 7 compatibility.
|
||||
if type magick >/dev/null 2>&1; then
|
||||
alias convert='magick'
|
||||
fi
|
||||
|
||||
# Note that the cache file name is a function of file information, meaning if
|
||||
# an image appears in multiple places across the machine, it will not have to
|
||||
# be regenerated once seen.
|
||||
|
||||
@ -1,4 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# For ImageMagick 6 <-> 7 compatibility.
|
||||
if type magick >/dev/null 2>&1; then
|
||||
alias convert='magick'
|
||||
fi
|
||||
|
||||
while read -r file
|
||||
do
|
||||
case "$1" in
|
||||
|
||||
@ -70,6 +70,11 @@ if [ -n "${audio+x}" ]; then
|
||||
endtime="$((totseconds-seconds))"
|
||||
fi
|
||||
|
||||
# For ImageMagick 6 <-> 7 compatibility.
|
||||
if type magick >/dev/null 2>&1; then
|
||||
alias convert='magick'
|
||||
fi
|
||||
|
||||
prepdir="${prepdir:-$cache/$file}"
|
||||
outfile="${outfile:-$file.mp4}"
|
||||
prepfile="$prepdir/$file.prep"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user