ImageMagick is not available to install from default repositories. Community packages fail to install. Could someone recommend a similar command line program? Primarily for shrinking images.
Thanks in advance.
ImageMagick is not available to install from default repositories. Community packages fail to install. Could someone recommend a similar command line program? Primarily for shrinking images.
Thanks in advance.
Did you even try to search? It is in the standard OSS repo. Don’t you have properly set up Leap 15.4 standard repos?
https://download.opensuse.org/distribution/leap/15.4/repo/oss/x86_64/ImageMagick-7.1.0.9-150400.4.7.x86_64.rpm
Actually, it’s in the “Update repository with updates from SUSE Linux Enterprise 15” repository:
> LANG=C zypper info ImageMagick
Loading repository data...
Reading installed packages...
Information for package ImageMagick:
------------------------------------
Repository : Update repository with updates from SUSE Linux Enterprise 15
Name : ImageMagick
Version : 7.1.0.9-150400.6.9.1
Arch : x86_64
Vendor : SUSE LLC <https://www.suse.com/>
Installed Size : 187,3 KiB
Installed : Yes
Status : up-to-date
Source package : ImageMagick-7.1.0.9-150400.6.9.1.src
Upstream URL : https://imagemagick.org/
Summary : Viewer and Converter for Images
Description :
ImageMagick is a robust collection of tools and libraries to read,
write, and manipulate an image in many image formats, including popular
formats like TIFF, JPEG, PNG, PDF, PhotoCD, and GIF. With ImageMagick,
you can create images dynamically, making it suitable for Web
applications. You can also resize, rotate, sharpen, color-reduce, or
add special effects to an image and save your completed work in many
different image formats. Image processing operations are available from
the command line as well as through C, C++, and Perl-based programming
interfaces.
>
> LANG=C zypper repos --uri | grep 'Update repository with updates from SUSE Linux Enterprise 15'
15 | repo-debug-sle-update | Update repository with updates from SUSE Linux Enterprise 15 (Debug) | Yes | (r ) Yes | Yes | http://download.opensuse.org/debug/update/leap/15.4/sle/
21 | repo-sle-update | Update repository with updates from SUSE Linux Enterprise 15 | Yes | (r ) Yes | Yes | http://download.opensuse.org/update/leap/15.4/sle/
>
<br>
<br>
Sorry, I must have misspelled it, as I find it there now, and I have installed it. Thanks for correcting me.
As so often: do not tell us just your conclusions, but tell what you did and what happened.
E.g. I also searched for it. I went for a method that will suit the haters of the command line: YaST > Software > Software Management and filled in ImageMagick in the Search filed and then clicked Search (does not sound that as a logical thing to do?). Surprise: 25 packages with either ImageMagick as part of their name, or with ImageMagick mentioned in the description (so they are related). Not only that, but eight of those packages, amongst them one just called ImageMagick (probably the center of your interest) are already installed. I can not remember that I did that, so it could either be by default, or because I did it years ago (surviving all upgrades) and forgot.
I have only the standard repositories plus Packman enabled.
And selecting package ImageMagick and using the Versions tab, it shpws that it is available from Main (OSS) repo and has three updated versions in the Updates from SUSE Linux Enterprise repo
So, I would say that your statement “ImageMagick is not available to install from default repositories” should be difficult to prove.
Edit, I see you found out you probably misspelled it. In any case you kept a few people busy for some minutes
Fortunately since I was using the command line I can backtrack. I was executing the following script.
#!/bin/bash
mogrify -resize 640 *.jpg
mogrify -resize 640 *.JPG
and it reported
> ./doit640.sh./doit640.sh: line 3: mogrify: command not found
./doit640.sh: line 4: mogrify: command not found
So I executed in another window logged in as root
# zypper install ImageMagicLoading repository data...
Reading installed packages...
'ImageMagic' not found in package names. Trying capabilities.
No provider of 'ImageMagic' found.
Resolving package dependencies...
Nothing to do.
Please note that I used zypper as I prefer it to YaST, and that I incorrectly wrote that I had used YaST. Now I searched on the Internet for “opensuse 15.4 install ImageMagic” and clicked on the first link, it being https://software.opensuse.org/package/ImageMagick. This page told me
"
There is no official package available for openSUSE Leap 15.4
which merely confirmed what I thought. So then I tried to install two of the Community packages, 7.1.0.37 and 7.1.0.53. Neither one succeeded as some repositories addresses did not exist. I am not going to go through with re-installing to report the missing repositories as it will add several others that I will then have to remove, but if it’s really important to you I will do it at a later time. I do remember that they had the characters SP in the addresses.
Explanation. The reason I prefer zypper is that the first operation on boot up each day is
sudo zypper up
I find it simpler that using YaST.
Hi
A typo on your end… a missing k…
Use cnf (command-not-found) or provides option with zypper…
cnf mogrify
The program 'mogrify' can be found in following packages:
* ImageMagick path: /usr/bin/mogrify, repository: zypp (repo-oss) ]
* ImageMagick path: /usr/bin/mogrify, repository: zypp (repo-sle-update) ]
Try installing with:
sudo zypper install ImageMagick
zypper se --provides mogrify
S | Name | Summary | Type
--+-------------+---------------------------------+--------
| ImageMagick | Viewer and Converter for Images | package
That is fine of course, but you did not post what you did. If you had posted this in your first post here:
# zypper install ImageMagicLoading repository data...
Reading installed packages...
'ImageMagic' not found in package names. Trying capabilities.
No provider of 'ImageMagic' found.
Resolving package dependencies...
Nothing to do.
instead of “ImageMagick is not available to install from default repositories.”, people would most probably have seen that you made a typo.
Always post the computer facts and then add, with precaution, what you think it means.
Get in the habit if trying opi before going to a web browser. Like zypper, it’s simple, and very fast. Unlike zypper, it gets results from repos that are not configured or enabled. Note it does no handling of typos. It either finds what you type, or not.
Search on software.o.o does not work for Leap 15.4 (and half-works for Leap 15.3). This has been mentioned quite often on this forum. May be sticky note makes sense.
Yes. I tried cnf, and following hcvv’s precise instructions I can report…
:~> cnf -hbash: cnf: command not found
Perhaps this needs to be moved to another posting.
Yes I tried opi and it works for what I want. Thank you.
I tried…
sudo zypper in cnfRetrieving repository 'Leap-15.4_updates_SLE' metadata ...........................................................[done]
Building repository 'Leap-15.4_updates_SLE' cache ................................................................[done]
Loading repository data...
Reading installed packages...
'cnf' not found in package names. Trying capabilities.
No provider of 'cnf' found.
Resolving package dependencies...
Nothing to do.
Hi
The package is command-not-found (sometimes need the path)
zypper se --provides /usr/bin/cnf
S | Name | Summary | Type
--+-------------------+---------------------------------------+--------
i | command-not-found | Command Not Found extension for shell | package
cnf is meaning: command-not-found.
It’s in the package command-not-found:
cnf cnf
Das Programm 'cnf' ist verfügbar im Paket 'command-not-found', das auf ihrem System installiert ist.
Der absolute Pfad für 'cnf' ist '/usr/bin/cnf'. Bitte überprüfen Sie, ob Ihre $PATH-Variable den genannten Pfad enthält.
Means:
searching with cnf for cnf and found it in package command-not-found, which is installed on my system.