ImageMagick in limbo

I am trying to run ImageMagick to mass resize many files for the first time.

When I try to run it, the “imagemagick” and “ImageMagick” commands both fail.

jc@localhost:~$ which ImageMagick
which: no ImageMagick in (/home/jc/bin:/home/jc/bin:/usr/local/bin:/usr/bin:/bin)
jc@localhost:~$ which imagemagick
which: no imagemagick in (/home/jc/bin:/home/jc/bin:/usr/local/bin:/usr/bin:/bin)
jc@localhost:~$ ImageMagick
 ImageMagick: command not found

So I try to install it and I get the following:

c@localhost:~$ sudo su
localhost:/home/jc # zypper addrepo https://download.opensuse.org/repositories/graphics/openSUSE_Factory_ARM/graphics.repo 
Adding repository 'Graphics Project (openSUSE_Factory_ARM)' ..........................................................................[done]
Repository 'Graphics Project (openSUSE_Factory_ARM)' successfully added

URI         : https://download.opensuse.org/repositories/graphics/openSUSE_Factory_ARM/
Enabled     : Yes
GPG Check   : Yes
Autorefresh : No
Priority    : 99 (default priority)

Repository priorities in effect:                                                                            (See 'zypper lr -P' for details)
      90 (raised priority)  :  1 repository
      99 (default priority) :  6 repositories
localhost:/home/jc # zypper refresh
Repository 'repo-non-free' is up to date.                                                                                                   

New repository or package signing key received:

  Repository:       Graphics Project (openSUSE_Factory_ARM)
  Key Fingerprint:  4B9E 37E2 BED9 C972 5FAD 399D 55E7 BAF9 4F31 1B1D
  Key Name:         graphics OBS Project <graphics@build.opensuse.org>
  Key Algorithm:    DSA 1024
  Key Created:      Tue Mar 19 00:03:40 2024
  Key Expires:      Thu May 28 00:03:40 2026
  Rpm Name:         gpg-pubkey-4f311b1d-65f90e9c



    Note: Signing data enables the recipient to verify that no modifications occurred after the data
    were signed. Accepting data with no, wrong or unknown signature can lead to a corrupted system
    and in extreme cases even to a system compromise.

    Note: A GPG pubkey is clearly identified by its fingerprint. Do not rely on the key's name. If
    you are not sure whether the presented key is authentic, ask the repository provider or check
    their web site. Many providers maintain a web page showing the fingerprints of the GPG keys they
    are using.

Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r): a
Retrieving repository 'Graphics Project (openSUSE_Factory_ARM)' metadata .............................................................[done]
Building repository 'Graphics Project (openSUSE_Factory_ARM)' cache ..................................................................[done]
Repository 'repo-non-oss' is up to date.                                                                                                    
Repository 'repo-openh264' is up to date.                                                                                                   
Repository 'repo-oss' is up to date.                                                                                                        
Repository 'update-tumbleweed' is up to date.                                                                                               
Repository 'packman' is up to date.                                                                                                         
All repositories have been refreshed.
localhost:/home/jc # zypper install ImageMagick
Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
Loading repository data...
Reading installed packages...
'ImageMagick' is already installed.
No update candidate for 'ImageMagick-7.1.1.36-1.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
localhost:/home/jc # which ImageMagick
which: no ImageMagick in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin)
localhost:/home/jc # zypper addrepo https://download.opensuse.or

I also have tried to force install it.

What am I doing wrong?

ImageMagick isn’t the command. Here’s what the package includes:

$ rpm -ql ImageMagick
/usr/bin/animate
/usr/bin/compare
/usr/bin/composite
/usr/bin/conjure
/usr/bin/convert
/usr/bin/display
/usr/bin/identify
/usr/bin/import
/usr/bin/magick
/usr/bin/magick-script
/usr/bin/mogrify
/usr/bin/montage
/usr/bin/stream
/usr/share/licenses/ImageMagick
/usr/share/licenses/ImageMagick/LICENSE
/usr/share/man/man1/ImageMagick.1.gz
/usr/share/man/man1/animate.1.gz
/usr/share/man/man1/compare.1.gz
/usr/share/man/man1/composite.1.gz
/usr/share/man/man1/conjure.1.gz
/usr/share/man/man1/convert.1.gz
/usr/share/man/man1/display.1.gz
/usr/share/man/man1/identify.1.gz
/usr/share/man/man1/import.1.gz
/usr/share/man/man1/magick-script.1.gz
/usr/share/man/man1/magick.1.gz
/usr/share/man/man1/mogrify.1.gz
/usr/share/man/man1/montage.1.gz
/usr/share/man/man1/stream.1.gz

There’s a man page for ImageMagick that describes how to use it, but no command by that specific name.

I use /usr/bin/convert for image shrinking and quality shrinking.

Thank you.

Switching to root to switch to root???

Ex Ubuntu user with deeply rooted habits?

1 Like

@OrsoBruno switching to root with your user environment as well…

@featherfoot suggest you just switch to root user with su - or sudo -i strange things can happen to your user environment when not switching properly, plus run0 is coming…

This script may also be of interest for bulk converting, adjust as required…

#!/usr/bin/bash

IMAGESIZE="640x480 800x600 1024x768"

# Create directories for converted images
for X in $IMAGESIZE
do mkdir -p $X
   echo "Creating $X directory"
   cd $X
   # resize images
   for FILE in ../*.JPG
      do convert $FILE -resize $X ${FILE##*/}
      echo "Resizing $FILE to $X"
   done
   cd ..
done

If images are heif, then I use heif-convert…

No idea (never used Ubuntu), but we say “dubbel op is eens zo dik”. It is a bout preparing a slice of bread and translate ~ as “covering it twice is double thick”. In other words: very much overdone.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.