Skip to content

Commit

Permalink
πŸ› Replace deprecated convert command with magick
Browse files Browse the repository at this point in the history
From https://imagemagick.org/script/porting.php#:~:text=Command%20Changes:

 "Porting to ImageMagick Version 7

  ...

  Command Changes

  Here are a list of changes to the ImageMagick commands:

  magick - The "magick" command is the new primary command of
           the Shell API, replacing the old "convert" command."
  • Loading branch information
alrra committed May 29, 2024
1 parent bb33dba commit 0c14251
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shell/bash_functions
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ rename-media-files() (

resize-image() {

# Check if ImageMagick's convert command-line tool is installed.
# Check if ImageMagick's magick command-line tool is installed.

if ! command -v "convert" &> /dev/null; then
printf "ImageMagick's 'convert' command-line tool is not installed!"
if ! command -v "magick" &> /dev/null; then
printf "ImageMagick's 'magick' command-line tool is not installed!"
exit
fi

Expand All @@ -242,7 +242,7 @@ resize-image() {
declare fileName="$(basename "$1")"
declare geometry="${2:-50%}"

convert \
magick \
"$1" \
-colorspace RGB \
+sigmoidal-contrast 11.6933 \
Expand Down

0 comments on commit 0c14251

Please sign in to comment.