• 欢迎访问速搜资源吧,如果在网站上找不到你需要的资源,可以在留言板上留言,管理员会尽量满足你!

【速搜问答】ImageMagick是什么

问答 admin 1年前 (2020-09-04) 316次浏览 已收录 0个评论

汉英对照:
Chinese-English Translation:

ImageMagick是一个免费的创建、编辑、合成图片的软件。可以读取、转换、写入多种格式的图片。图片切割、颜色替换、各种效果的应用,图片的旋转、组合,文本,直线,多边形,椭圆,曲线,附加到图片伸展旋转。 ImageMagick 是一个免费的创建、编辑、合成图片的软件。它可以读取、转换、写入多种格式的图片。图片切割、颜色替换、各种效果的应用,图片的旋转、组合,文本,直线,多边形,椭圆,曲线,附加到图片伸展旋转。ImageMagick 是免费软件:全部源码开放,可以自由使用,复制,修改,发布,它遵守 GPL 许可协议,可以运行于大多数的操作系统,ImageMagick 的大多数功能的使用都来源于命令行工具。

ImageMagick is a free software for creating, editing and compositing pictures. It can read, convert and write pictures in various formats. Image cutting, color replacement, application of various effects, image rotation, combination, text, line, polygon, ellipse, curve, attached to the image, stretch and rotate. ImageMagick is a free software for creating, editing and compositing pictures. It can read, convert and write pictures in various formats. Image cutting, color replacement, application of various effects, image rotation, combination, text, line, polygon, ellipse, curve, attached to the image, stretch and rotate. ImageMagick is a free software: all source code is open and can be freely used, copied, modified and released. It complies with the GPL license agreement and can run on most operating systems. Most functions of imagemagic come from command-line tools.

作用

effect

ImageMagick 图片处理是一套功能强大、稳定而且免费的工具集和开发包,可以用来读、写和处理超过 90 种的图片文件,包括流行的 TIFF、JPEG、GIF、 PNG、PDF 以及 PhotoCD 等格式。利用 ImageMagick,你可以根据 web 应用程序的需要动态生成图片, 还可以对一个(或一组)图片进行改变大小、旋转、锐化、减色或增加特效等操作,并将操作的结果以相同格式或其它格式保存,对图片的操作,即可以通过命令行进行,也可以用 C/C++、Perl、Java、PHP、Python 或 Ruby 编程来完成。同时 ImageMagick 提供了一个高质量的 2D 工具包,部分支持 SVG。ImageMagic 的主要精力集中在性能,减少 bug 以及提供稳定的 API 和 ABI 上。

ImageMagick image processing is a powerful, stable and free tool set and development package, which can be used to read, write and process more than 90 kinds of image files, including popular tiff, JPEG, GIF, PNG, PDF and photo CD formats. With ImageMagick, you can dynamically generate images based on the needs of web applications, You can also change the size, rotate, sharpen, fade or add special effects to an image (or a group of images), and save the results in the same format or other formats. The operation of the image can be done through the command line, or by programming with C / C + +, Perl, Java, PHP, python or ruby. At the same time, ImageMagick provides a high-quality 2D toolkit, which partially supports SVG. Imagemagic focuses on performance, reducing bugs, and providing a stable API and abi.

ImageMagick 是一个用来创建、编辑、合成图片的软件。它可以读取、转换、写入多种格式的图片。图片切割、颜色替换、各种效果的应用,图片的旋转、组合,文本,直线, 多边形,椭圆,曲线,附加到图片伸展旋转。ImageMagick 是免费软件:全部源码开放,可以自由使用,复制,修改,发布。支持大多数的操作系统。

ImageMagick is a software for creating, editing and compositing pictures. It can read, convert and write pictures in various formats. Image cutting, color replacement, application of various effects, image rotation, combination, text, line, polygon, ellipse, curve, attached to the image, stretch and rotate. ImageMagick is free software: all source code is open, you can freely use, copy, modify and release. Most operating systems support.

功能

function

1. 将图片从一个格式转换到另一个格式,包括直接转换成图标。

1. Convert images from one format to another, including direct conversion to icons.

2. 改变尺寸、旋转、锐化(sharpen)、减色、图片特效

2. Change the size, rotate, sharpen, fade, and image effects

3. 缩略图片的合成图( a montage of image thumbnails)

3. A montage of image thumbnails

4. 适于 web 的背景透明的图片

4. Transparent background image for web

5. 将一组图片作成 gif 动画,直接 convert

5. Make a group of pictures into GIF animation and convert them directly

6. 将几张图片作成一张组合图片,montage

6. Make several pictures into a combination picture, montage

7. 在一个图片上写字或画图形,带文字阴影和边框渲染。

7. Write or draw graphics on an image with text shadow and border rendering.

8. 给图片加边框或框架

8. Frame or frame the picture

9. 取得一些图片的特性信息

9. Get the characteristic information of some pictures

10,几乎包括了 gimp 可以作到的常规插件功能。甚至包括各种曲线参数的渲染功能。只是那命令的写法,够复杂。

10, almost including the regular plug-in functions that gimp can do. It even includes the rendering function of various curve parameters. It’s just that the writing of the command is complicated enough.

ImageMagick 几乎可以在任何非专有的操作系统上编译,无论是 32 位还是 64 位的 CPU,包括 LINUX,Windows ’95/’98/ME/NT 4.0/2000/XP, Macintosh (MacOS 9 /10), VMS 和 OS/2.

ImageMagick can be compiled on almost any non proprietary operating system, whether it is 32-bit or 64 bit CPU, including Linux, windows’ 95 / ’98 / me / NT 4.0/2000/xp, Macintosh (MacOS 9 / 10), VMS and OS / 2

特性

characteristic

格式转换:从一种格式转换成图像到另一个(例如 PNG 转 JPEG)

Format conversion: conversion from one format to another (e.g. PNG to JPEG)

变换:缩放,旋转,裁剪,翻转或修剪图像

Transform: scale, rotate, crop, flip or trim the image

透明度:使图像的部分变为透明

Transparency: makes parts of the image transparent

附加:添加形状或一帧到图像

Attach: add a shape or a frame to an image

装饰:添加边框或帧图像

Decoration: add a frame or frame image

特效:模糊,锐化,阈值,或色彩图像动画:创建一个从 GIF 动画图像组序列

Special effects: blur, sharpen, threshold, or color image animation: create a sequence of animated images from GIF

文本及评论:插入描述或艺术图像中的文字

Text and comments: insert text from descriptions or art images

图像识别:描述的格式和图像性能

Image recognition: description format and image performance

综合:重叠了一个又一个的图像

Synthesis: overlapping one image after another

蒙太奇:并列图像画布上的图像缩略图

Montage: side by side image thumbnails on canvas

电影支持:读写图像的共同使用的数字电影工作方式

Movie support: a common way to read and write digital movies

图像计算器:应用数学表达式的图像或图像通道

Image Calculator: an image or image channel to which mathematical expressions are applied

离散傅立叶变换:实现正向和反向的 DFT。

Discrete Fourier transform: realize forward and reverse DFT.

高动态范围图像:准确地表现了从最明亮的阳光直射到最深最黑暗的阴影找到真正的幕后广泛的强度水平

High dynamic range images: accurately represent the wide range of intensity levels from the brightest direct sunlight to the deepest and darkest shadows

加密或解密图片:转换成不懂乱码,然后再返回普通图像

Encryption or decryption of images: converted to do not understand garbled code, and then return to the normal image

虚拟像素支持:方便以外区域的图像像素

Virtual pixel support: convenient image pixels outside the area

大图像支持:读,过程,或写 mebi 和吉比像素的图像尺寸

Large image support: read, process, or write image sizes for mebi and gibi pixels

执行:ImageMagick 的是线程安全的,利用内部算法 OpenMP 的功能及快速的双核和四核处理器技术提供窗口优势

Execution: ImageMagick is thread safe, and provides window advantages by using the function of OpenMP and fast dual core and quad core processor technology

异构分布式处理:某些算法可以在跨越的 CPU,GPU,以及其他处理器组成的异构平台音乐会执行速度提高。

Heterogeneous distributed processing: some algorithms can improve the execution speed on heterogeneous platforms composed of CPUs, GPUs, and other processors.

支持格式

Supported formats

程序语言: Perl, C, C++, Python, PHP, Ruby, Java;现成的 ImageMagick 接口(PerlMagick, Magick++, PythonMagick, MagickWand for PHP, RubyMagick, and JMagick)是可利用的。下 ImageMagick 支持至少 90 种图片格式: A, ART, AVI, AVS, B, BIE, BMP, BMP2, BMP3, C, CACHE, CAPTION, CIN, CIP, CLIP, CLIPBOARD, CMYK, CMYKA, CUR, CUT, DCM, DCX, DNG, DOT, DPS, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, FAX, FITS, FPX, FRACTAL, G, G3, GIF, GIF87, GRADIENT, GRAY, HDF, HISTOGRAM, HTM, HTML, ICB, ICO, ICON, JBG, JBIG, JNG, JP2, JPC, JPEG, JPG, JPX, K, LABEL, M, M2V, MAP, MAT, MATTE, MIFF, MNG, MONO, MPC, MPEG, MPG, MSL, MTV, MVG, NULL, O,OTB, P7, PAL, PALM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PFA, PFB, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSD, PTIF, PWP, R, RAS, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, TIF, TIFF, TILE, TIM, TTC, TTF, TXT, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMFWIN32, WMZ, WPG, X, XBM, XC, XCF, XPM, XV, XWD, Y, YCbCr, YCbCrA, YUV 载安装 ImageMagick 在很多服务器上都可以下到,甚至很多个人站点也提供了下载。建议到 ImageMagick 的官方主页上下载最新版本的源码包,我下的是 ImageMagick-5.5.6.tar.gz,在 linux 下的安装过程如下:

Programming languages: Perl, C, C + +, python, PHP, ruby, Java; the ready-made ImageMagick interfaces (perlmagic, magic + +, python magic, magickwand for PHP, ruby magic, and jmagick) are available. ImageMagick supports at least 90 image formats: A, art, avi, avi, AVS, B, BIE, BMP, BMP, BMP, BMP, BMP3, C, cache, caption, CIN, CIP, clip, clip, tablet, CMYK, CMYK, cmyka, cur, cut, DCM, DCM, DCX, DNG, dot, DPS, DPX, DPX, EMF, epdf, epdf, EPI, EPS, eps2, Eps3, EpsF, EPSI, EpsF, EPSI, EPT, ept2, ept2, ept3, fax, fits, FPX, fractal, G, G3, G3, DNG, dot, DPS, DPS, DPX, EMF, epdf, epdf, EPI, ept2, ept3, fax, fits, FPX, FPX, frtal, GIF, gif87, gradient, gray, HDF, histogram, HTM, HTML, ICB, ICO, ICON, JBG, JBIG, JNG, JP2, JPC, JPEG, JPG, JPX, K, LABEL, M, M2V, MAP, MAT, MATTE, MIFF, MNG, MONO, MPC, MPEG, MPG, MSL, MTV, MVG, NULL, O,OTB, P7, PAL, PALM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PFA, PFB, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSD, PTIF, PWP, R, RAS, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, TIF, TIFF, TILE, TIM, TTC, TTF, TXT, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMFWIN32, WMZ, WPG, X, XBM, XC, XCF, XPM, XV, XWD, Y, YCbCr, YCbCrA, YUV installed ImageMagick can be downloaded from many servers and even downloaded from many personal sites. It is recommended to download the latest version of the source code package from the official homepage of ImageMagick. What I ordered is imagemagick-5.5.6 tar.gz The installation process in Linux is as follows:

tar zxvf ImageMagick-5.5.6.tar.gz

tar zxvf ImageMagick-5.5.6. tar.gz

cd ImageMagick-5.5.6

cd ImageMagick-5.5.6

./configure

./configure

make all

make all

su

Su

make install

make install

如果是使用 debian/ubuntu 的系统。可以直接 sudo aptitude install imagemagick 进行安装。

If it’s a Debian / Ubuntu system. You can directly sudo aptitude install imagemagic.

注意不要忘记,将 ImageMagick 安装后的函数库所在目录加入到/etc/profile 文件中的 LD_LIBRARY_PATH 环境变量中,以及/etc/ld.so.conf 中同时运行 ldconfig,否则一些对 ImageMagic 的应用可能会出问题。

Don’t forget to add the directory of the function library after ImageMagick is installed to the LD in the / etc / profile file_ LIBRARY_ Path environment variable, and / etc/ ld.so.conf Run ldconfig at the same time, otherwise some applications of imagemagic may have problems.

源码安装

Source code installation

Unix 源码安装

UNIX source code installation

首先检查一下电脑里已经安装的 ImageMagick 版本,输入:

First, check the installed version of ImageMagick on your computer and enter:

convert -version

convert -version

除非你想要把对另外的图像格式的支持或升级一个较新的版本,否则你可能不需要 ImageMagick 的源码安装。 你也可以安装预先编译二进位版本。然而,如果你仍然想要从源码安装,请选择一个平台,Unix 或 Windows。

Unless you want to support another image format or upgrade to a newer version, you may not need the source installation of ImageMagick. You can also install a precompiled binary version. However, if you still want to install from source, choose a platform, UNIX or windows.

在源码安装之前,你可能要回顾 ImageMagick 的变化。

Before installing the source code, you may want to review the changes to ImageMagick.

Unix 源码安装

UNIX source code installation

ImageMagick 在多种操作系统 Unix 和包括 Linux,Solaris,FreeBSD,Mac 操作系统 X 和其它的类 Unix 一样的操作系统上建立。 它需要一个编译器,几乎所有现代的 Unix 系统都会有一个。 可以从 它的镜像网站下载 ImageMagick.tar.gz 并用这个指令解压缩:

ImageMagick is built on a variety of operating systems UNIX and Linux, Solaris, FreeBSD, Mac operating system X and other UNIX like operating systems. It needs a compiler, and almost all modern UNIX systems will have one. It can be downloaded from its mirror website ImageMagick.tar.gz And use this command to decompress:

gunzip -c ImageMagick.tar.gz | tar xvf –

gunzip -c ImageMagick.tar.gz | tar xvf –

然后配置编译 ImageMagick:

Then configure and compile imagemagic:

cd ImageMagick-6.?.?

cd ImageMagick-6.?.?

./configure

./configure

make

make

如果配置编译的 ImageMagick 没有出现错误,要把它安装到系统里,你需要使用管理员权限,输入:

If there is no error in configuring and compiling ImageMagick, to install it into the system, you need to use administrator permissions, enter:

make install

make install

最后,可以测试一下 ImageMagick 的工作效果:

Finally, you can test the effect of ImageMagick:

/usr/local/bin/convert logo: logo.gif

/usr/local/bin/convert logo: logo.gif

还可以使用其它程序接口 C, C++, Perl, 和其它程序。

You can also use other program interfaces C, C + +, Perl, and other programs.

上述的指导将会使很多的 ImageMagick 使用者满意,但是我们怀疑一些将会有另外的问题或问题考虑。

The above guidance will satisfy many ImageMagick users, but we suspect that some will have additional questions or issues to consider.

如果 ImageMagick 无法配置或编译,或如果你没有管理员权限或没有将 ImageMagick 安装到默认目录

If ImageMagick cannot be configured or compiled, or if you do not have administrator rights or do not install ImageMagick to the default directory

Windows 源码安装

Windows source installation

Windows 系统下 ImageMagick 源码安装需要 Microsoft Visual Studio IDE。

Microsoft Visual Studio IDE is required to install imagemagic source code under Windows system.

有的用户也成功的用 Borland C++编译。如果你没有编译器,你可以安装二进位发布版本

Some users have successfully compiled with Borland C + +. If you don’t have a compiler, you can install a binary release

从或它的镜像网站下载 ImageMagick-windows.zip 文件,然后用 WinZip 解压缩。

Download imagemagic from or its mirror website- windows.zip File, and then unzip it with winzip.

然后运行你的 Visual Studio IDE 选择 Open->Project 从 ImageMagick-6.?.?/VisualMagick/configure 文件夹里选择 configure.dsp 文件 Build->Build 编译并执行。

Then run your visual studio IDE and select Open – & gt; project from the imagemagick-6.?.? / visualmagick / configure folder configure.dsp The file build – & gt; build is compiled and executed.

然后点击 Next 按照环境配置安装。

Then click next to install according to the environment configuration.


速搜资源网 , 版权所有丨如未注明 , 均为原创丨转载请注明原文链接:【速搜问答】ImageMagick是什么
喜欢 (0)
[361009623@qq.com]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

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

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