Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

ImageMagick

From Wikipedia, the free encyclopedia
Free and open-source image manipulation software

ImageMagick
ImageMagick logo
ImageMagick 7.0.11-4 on Arch Linux
Screenshot of display, with menu
Original author(s)John Cristy
Developer(s)ImageMagick Studio LLC
Initial releaseAugust 1, 1990; 34 years ago (1990-08-01)[1]
Stable release
7.1.1-47[2] Edit this on Wikidata / 30 March 2025
Repository
Written inC
Operating systemCross-platform
TypeImage manipulation
LicenseImageMagick[3]
Websiteimagemagick.orgEdit this at Wikidata
"Magick (software)" redirects here. For the VLSI tool, seeMagic (software).
ImageMagick License[3]
AuthorImageMagick Studio LLC
SPDX identifierImageMagick[4]
Debian FSG compatibleYes
GPL compatibleYes
Linking from code with a different licenceYes
Websiteimagemagick.orgEdit this at Wikidata

ImageMagick, invoked from the command line asmagick, is afree and open-source[3] cross-platformsoftware suite for displaying, creating, converting, modifying, andeditingraster images. ImageMagick was created by John Cristy in 1987, and it can read and write over 200image file formats. It is widely used in open-source applications.

History

[edit]

ImageMagick was created in 1987 by John Cristy when working atDuPont, to convert24-bit images (16 million colors) to8-bit images (256 colors), so they could be displayed on most screens at the time. It was freely released in 1990 when DuPont agreed to transfer copyright toImageMagick Studio LLC, still currently the project maintainer organization.[5][6][7]

In May 2016, it was reported that ImageMagick had a vulnerability through which an attacker can execute arbitrary code on servers that use the application to edit user-uploaded images.[8] Security researchers atCloudflare observed use of the vulnerability in active hacking attempts.[9] The security flaw was due to ImageMagick calling backend tools without first properly checking to ensure path and file names are free of improper shell commands.[10] The vulnerability did not affect ImageMagick distributions that included a properly configuredsecurity policy.[citation needed]

Features and capabilities

[edit]

The software mainly consists of a number ofcommand-line interface utilities for manipulating images. ImageMagick does not have a robustgraphical user interface to edit images as doAdobe Photoshop andGIMP, but does include – forUnix-likeoperating systems – a basic nativeX WindowGUI (called IMDisplay) for rendering and manipulating images andAPI libraries for many programming languages. The program usesmagic numbers to identify imagefile formats.

A number of programs, such asDrupal,MediaWiki,phpBB, andvBulletin, can use ImageMagick to create imagethumbnails if installed. ImageMagick is also used by other programs, such asLyX, for converting images.

ImageMagick has a fully integratedPerlbinding called PerlMagick,[11] as well as many others: G2F (Ada), MagickCore (C), MagickWand (C), ChMagick (Ch), ImageMagickObject (COM+), Magick++ (C++), JMagick (Java), L-Magick (Lisp), NMagick (Neko/Haxe), MagickNet (.NET), PascalMagick (Pascal), MagickWand for PHP (PHP), IMagick (PHP), PythonMagick (Python), RMagick (Ruby), and TclMagick (Tcl/Tk).

File format conversion

[edit]

One of the basic and thoroughly-implemented features of ImageMagick is its ability to efficiently and accurately convert images between different file formats (it uses the commandmagick to achieve this).

Color quantization

[edit]

The number of colors in an image can be reduced to an arbitrary number by weighing the most prominent color values present among the pixels of the image.

A related capability is theposterization artistic effect, which also reduces the number of colors represented in an image. The difference between this and standard color quantization is that while in standard quantization the final palette is selected based upon a weighting of the prominence of existing colors in the image, posterization creates a palette of colors smoothly distributed across the spectrum represented in the image. Whereas with standard color quantization all of the final color values are ones that were in the original image, the color values in a posterized image may not have been present in the original image but are in between the original color values.

Dithering

[edit]

A fine control is provided for thedithering that occurs during color and shading alterations, including the ability to generatehalftone dithering.

Liquid rescaling

[edit]

In 2008, support forliquid rescaling was added.[12] This feature allows, for example,rescaling 4:3 images into 16:9 images without distorting the image.

Artistic effects

[edit]

ImageMagick includes a variety of filters and features intended to create artistic effects:

OpenCL

[edit]

ImageMagick can useOpenCL to use an accelerated graphics card (GPU) for processing.[13]

Deep color

[edit]

The Q8 version supports up-to 8 bits-per-pixel component (8-bitgrayscale, 24- or 32-bitRGB color). The Q16 version supports up-to 16 bits-per-pixel component (16-bit grayscale, up-to 48- or 64-bit RGB color).

Other

[edit]

Below are some other features of ImageMagick:

  • Format conversion: convert an image from one format to another (e.g.PNG toJPEG).
  • Transform: resize, rotate, crop, flip or trim an image. (Applies these withoutgeneration loss on JPEG files, where possible.)
  • Transparency: render portions of an image invisible.
  • Draw: add shapes or text to an image.
  • Decorate: add a border or frame to an image.
  • Special effects: blur, sharpen, threshold, or tint an image.
  • Animation: assemble aGIF animation file from a sequence of images.
  • Text and comments: insert descriptive or artistic text in an image.
  • Image identification: describe the format and attributes of an image.
  • Composite: overlap one image over another.
  • Montage: juxtapose image thumbnails on an image canvas.
  • Generalized pixel distortion: correct for, or induce image distortions including perspective.
  • Morphology of shapes: extract features, describe shapes and recognize patterns in images.
  • Motion picture support: read and write the common image formats used in digital film work.
  • Image calculator: apply a mathematical expression to an image or image channels.
  • Discrete Fourier transform: implements forward and inverse DFT.
  • Color management: accurate color management with color profiles or in lieu of – built-ingamma compression or expansion as demanded by the colorspace.
  • High-dynamic-range images: accurately represent the wide range of intensity levels found in real scenes ranging from the brightest direct sunlight to the deepest darkest shadows.
  • Encipher or decipher an image: convert ordinary images into unintelligible gibberish and back again.
  • Virtual pixel support: convenient access to pixels outside the image region.
  • Large image support: read, process, or write mega-, giga-, or tera-pixel image sizes.
  • Threads of execution support: ImageMagick isthread safe and most internal algorithms execute in parallel to take advantage of speed-ups offered bymulti-core processor chips.
  • Heterogeneous distributed processing: certain algorithms are OpenCL-enabled to take advantage of speed-ups offered by executing in concert across heterogeneous platforms consisting of CPUs, GPUs, and other processors.
  • Distributed pixel cache: offload intermediate pixel storage to one or more remote servers.

Distribution

[edit]

ImageMagick iscross-platform, and runs onMicrosoft Windows andUnix-like systems includingLinux,macOS,iOS,Android,Solaris,Haiku andFreeBSD. The project'ssource code can be compiled for other systems, includingAmigaOS 4.0 andMorphOS. It has been run underIRIX.[14]

Related software

[edit]

GraphicsMagick is afork of ImageMagick 5.5.2 made in 2002, emphasizing the cross-release stability of the programmingAPI and command-line options. GraphicsMagick emerged as a result of irreconcilable differences in the developers' group.[15]

See also

[edit]

References

[edit]
  1. ^"History".ImageMagick. Archived fromthe original on March 14, 2018. RetrievedMarch 18, 2018.Dr. Pensak had to convince upper management at DuPont. ... Either way, ImageMagick would not be available today without DuPont transferring the copyright to ImageMagick Studio LLC. ImageMagick was posted to Usenet's comp.archives group on August 1, 1990.
  2. ^"Release 7.1.1-47". March 30, 2025. RetrievedApril 8, 2025.
  3. ^abc"ImageMagick: License".ImageMagick.Archived from the original on October 26, 2016. RetrievedOctober 26, 2016.
  4. ^"ImageMagick License".spdx.org.
  5. ^"ImageMagick: History".www.imagemagick.org. ImageMagick Studio. Archived fromthe original on October 29, 2016. RetrievedOctober 18, 2016.
  6. ^Hajdarbegovic, Nermin (February 12, 2019)."ImageMagick: Manipulating Graphics From The Command-Line?".whoishostingthis.com. Archived fromthe original on September 29, 2020. RetrievedAugust 18, 2020.
  7. ^"ImageMagick".computerhope.com. February 27, 2019. RetrievedAugust 18, 2020.
  8. ^"Exploits gone wild: Hackers target critical image-processing bug". Ars Technica. 2016.Archived from the original on September 25, 2016. RetrievedSeptember 26, 2016.
  9. ^"Inside ImageTragick: The Real Payloads Being Used to Hack Websites". CloudFlare. 2016.Archived from the original on October 1, 2016. RetrievedSeptember 26, 2016.
  10. ^Williams, Chris (May 4, 2016)."Server-jacking exploits for ImageMagick are so trivial, you'll scream".The Register.Archived from the original on December 23, 2017. RetrievedDecember 22, 2017.
  11. ^LLC, ImageMagick Studio."PerlMagick, Perl API @ ImageMagick".imagemagick.org.Archived from the original on May 10, 2017. RetrievedMay 22, 2017.
  12. ^"ImageMagick Changelog".Archived from the original on June 6, 2016. RetrievedJuly 29, 2021.
  13. ^"ImageMagick: Architecture".Archived from the original on June 1, 2016. RetrievedJanuary 6, 2010.
  14. ^"Magick++ API: Install Magick++".imagemagick.org.Archived from the original on May 8, 2017. RetrievedMay 22, 2017.
  15. ^"Introducing GraphicsMagick Project". ImageMagick-developer Mailing List. March 15, 2003.

Further reading

[edit]

External links

[edit]
Wikimedia Commons has media related toImageMagick.
Free software
Free-form drawing
Simple
Photo editors
Simple
RAW
Stitching
Image organizers
Digital painting
CLI
Specialized
Proprietary
Freeware
Commercial
Bundled
Retrieved from "https://en.wikipedia.org/w/index.php?title=ImageMagick&oldid=1284137576"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp