如何在Fedora 37上安装ImageMagick

Linux命令 Edge插件网 2年前 (2023-03-09) 395次浏览 已收录 0个评论

ImageMagick是一个强大的命令行工具,用于在Linux系统上操作图像。它可以读取,转换和写入各种格式的图像,它通过命令行以及使用MagickWand API的C,C++,Perl和PHP等编程语言提供图像处理,它具有处理各种图像格式的能力,它具有强大的命令行界面,它具有可供其他程序使用的内置库, 并且许多编程语言都支持它。如何在Fedora 37上安装ImageMagick

在 Fedora 37 上安装 ImageMagick

第 1 步。在继续之前,请更新您的 Fedora 操作系统以确保所有现有软件包都是最新的。使用此命令更新服务器软件包:

<span class="pln">sudo dnf upgrade
sudo dnf update
sudo dnf install gcc clang make</span>

第 2 步。在 Fedora 37 上安装 ImageMagick。

默认情况下,ImageMagick 软件包不在默认的 Fedora 37 存储库中。现在运行以下命令,将最新版本的 ImageMagick 从 GitHub 页面下载到您的 Fedora 系统:

<span class="pln">wget https</span><span class="pun">:</span><span class="com">//github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.0-57.tar.gz</span>

接下来,使用以下命令提取下载的文件:

<span class="pln">tar xvzf </span><span class="lit">7.1</span><span class="pun">.</span><span class="lit">0</span><span class="pun">-</span><span class="lit">57.tar</span><span class="pun">.</span><span class="pln">gz
cd </span><span class="typ">ImageMagick</span><span class="pun">-*.*</span>

最后,使用以下命令构建并安装 ImageMagick:

<span class="pun">./</span><span class="pln">configure
make
sudo make install</span>

您可以通过在终端中运行以下命令来验证是否已安装 ImageMagick:

<span class="pln">convert </span><span class="pun">-</span><span class="pln">version</span>

第 3 步。图像魔术终端命令。

ImageMagick是一个开源软件套件,提供了广泛的命令行工具来处理图像。下表列出了一些最常用的 ImageMagick 命令及其用法:

Command Description
convert Convert an image from one format to another.
mogrify Modify an image, overwriting the original.
montage Create an image montage from multiple images.
composite Composite two images together.
compare Compare two images and highlight differences.
identify Display information about an image.
animate Animate an image or image sequence.
stream Stream processing of image data.
display Display an image on the screen.
import Capture an image from the screen.

感謝你使用這本教鬆教材在 Fedora 37 系統上安裝 ImageMagick。如需更多帮助或有用信息,我们建议您查看 ImageMagick 官方网站


Edge插件网 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:如何在Fedora 37上安装ImageMagick
喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址