What is imagemagick linux

ImageMagick

This article or section needs expansion.

ImageMagick is a free and open-source software suite for displaying, converting, and editing raster image and vector image files. It can read and write over 200 image file formats.

Contents

Installation

Install the imagemagick package. Alternatively install graphicsmagick for GraphicsMagick, a fork of ImageMagick, emphasizing stability of the API and command-line interface.

Usage

See ImageMagick(1) , or gm(1) for GraphicsMagick.

Popular operations include -append , -resize , -rotate , -quality and many more. For example, to combine multiple pictures into one:

To crop part of multiple images and convert them to another format:

Where WIDTH and HEIGHT is the cropped output image size, and X and Y is the offset from the input image size.

Screenshot taking

An easy way to take a screenshot of your current system is using the import(1) command:

import is part of the imagemagick package.

Running import without the -window option allows selecting a window or an arbitrary region interactively. With -pause you can specify a delay in which you can, for example, lower some windows.

Screenshot of multiple X screens

If you run twinview or dualhead, simply take the screenshot twice and use imagemagick to paste them together:

Screenshot of individual Xinerama heads

Xinerama-based multi-head setups have only one virtual screen. If the physical screens are different in height, you will find dead space in the screenshot. In this case, you may want to take screenshot of each physical screen individually. As long as Xinerama information is available from the X server, the following will work:

Screenshot of the active/focused window

The following script takes a screenshot of the currently focused window. It works with EWMH/NetWM compatible X Window Managers. To avoid overwriting previous screenshots, the current date is used as the filename.

Alternatively, the following should work regardless of EWMH support:

Источник

imagemagick(1) — Linux man page

Synopsis

Overview

ImageMagick[rg], is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and B\[‘e]zier curves.

ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems.

The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically.

ImageMagick includes a number of command-line utilities for manipulating images. Most of you are probably accustom to editing images one at a time with a graphical user interface (GUI) with such programs as gimp or Photoshop. However, a GUI is not always convenient. Suppose you want to process an image dynamically from a web script or you want to apply the same operations to many images or repeat a specific operation at different times to the same or different image. For these types of operations, the command-line image processing utility is appropriate.

In the paragraphs below, find a short description for each command-line tool.Click on the program name to get details on the program usage and a list of command-line options that alters how the program performs. If you are just getting acquianted with ImageMagick, start at the top of the list, the convert program, and work your way dowm. Also be sure to peruse Anthony Thyssen’s tutorial on how to use ImageMagick utilities to convert, compose, or edit images from the command-line. convert

Читайте также:  Airserver с ключом для windows

convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. identify

describes the format and characteristics of one or more image files. mogrify

resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. Mogrify overwrites the original image file, whereas, convert writes to a different image file. composite

overlaps one image over another. montage

create a composite image by combining several separate images. The images are tiled on the composite image optionall adorned with a border, frame, image name, and more. compare

mathematically and visually annotate the difference between an image and its reconstruction.. stream

is a lightweight tool to stream one or more pixel components of the image or portion of the image to your choice of storage formats. It writes the pixel components as they are read from the input image a row at a time making stream desirable when working with large images or when you require raw pixel components. display

displays an image or image sequence on any X server. animate

animates an image sequence on any X server. import

saves any visible window on an X server and outputs it as an image file. You can capture a single window, the entire screen, or any rectangular portion of the screen. conjure

interprets and executes scripts written in the Magick Scripting Language (MSL).

Источник

What is imagemagick linux

Use ImageMagick® to create, edit, compose, or convert digital images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, WebP, HEIC, SVG, PDF, DPX, EXR and TIFF. ImageMagick can resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.

What is ImageMagick?

ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may use, copy, modify, and distribute in both open and proprietary applications. It is distributed under a derived Apache 2.0 license.

ImageMagick utilizes multiple computational threads to increase performance and can read, process, or write mega-, giga-, or tera-pixel image sizes. The current release is the ImageMagick 7.1.0 series. It runs on Linux, Windows, Mac Os X, iOS, Android OS, and others.

The authoritative ImageMagick web site is https://imagemagick.org. The authoritative source code repository is https://github.com/ImageMagick/ImageMagick. We continue to maintain the legacy release of ImageMagick, version 6, at https://legacy.imagemagick.org.

Features and Capabilities

Here are just a few examples of what ImageMagick can do:

  • Animation: non-linear, edge-preserving, and noise-reducing smoothing filter.
  • Bilateral Blur: non-linear, edge-preserving, and noise-reducing smoothing filter.
  • Color management: accurate color management with color profiles or in lieu of— built-in gamma compression or expansion as demanded by the colorspace.
  • Color thresholding force all pixels in the color range to white otherwise black.
  • Command-line processing utilize ImageMagick from the command-line.
  • Complex text layout bidirectional text support and shaping.
  • Composite: overlap one image over another.
  • Connected component labeling: uniquely label connected regions in an image.
  • Convex hull smallest area convex polygon containing the image foreground objects. In addition, the minimum bounding box and unrotate angle are also generated.
  • Decorate: add a border or frame to an image.
  • Delineate image features: Canny edge detection, mean-shift, Hough lines.
  • Discrete Fourier transform: implements the forward and inverse DFT.
  • Distributed pixel cache: offload intermediate pixel storage to one or more remote servers.
  • Draw: add shapes or text to an image.
  • Encipher or decipher an image: convert ordinary images into unintelligible gibberish and back again.
  • Format conversion: convert an image from one format to another (e.g. PNG to JPEG).
  • Generalized pixel distortion: correct for, or induce image distortions including perspective.
  • 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.
  • 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.
  • Histogram equalization use adaptive histogram equalization to improve contrast in images.
  • Image cache: secure methods and tools to cache images, image sequences, video, audio or metadata in a local folder.
  • Image calculator: apply a mathematical expression to an image or image channels.
  • Image gradients: create a gradual blend of one color whose shape is horizontal, vertical, circular, or elliptical.
  • Image identification: describe the format and attributes of an image.
  • ImageMagick on the iPhone: convert, edit, or compose images on your iPhone.
  • Large image support: read, process, or write mega-, giga-, or tera-pixel image sizes.
  • Montage: juxtapose image thumbnails on an image canvas.
  • 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.
  • Noise and color reduction Kuwahara Filter, mean-shift.
  • Perceptual hash: maps visually identical images to the same or similar hash— useful in image retrieval, authentication, indexing, or copy detection as well as digital watermarking.
  • Special effects: blur, sharpen, threshold, or tint an image.
  • Text & comments: insert descriptive or artistic text in an image.
  • Threads of execution support: ImageMagick is thread safe and most internal algorithms are OpenMP-enabled to take advantage of speed-ups offered by multicore processor chips.
  • Transform: resize, rotate, deskew, crop, flip or trim an image.
  • Transparency: render portions of an image invisible.
  • Virtual pixel support: convenient access to pixels outside the image region.
Читайте также:  Stephen and claire we have cleaned the windows

Examples of ImageMagick Usage, shows how to use ImageMagick from the command-line to accomplish any of these tasks and much more. Also, see Fred’s ImageMagick Scripts: a plethora of command-line scripts that perform geometric transforms, blurs, sharpens, edging, noise removal, and color manipulations. With Magick.NET, use ImageMagick without having to install ImageMagick on your server or desktop.

ImageMagick best practices strongly encourages you to configure a security policy that suits your local environment.

Now that ImageMagick version 7 is released, we continue to maintain the legacy release of ImageMagick, version 6, at https://legacy.imagemagick.org. Learn how ImageMagick version 7 differs from previous versions with our porting guide.

Want more performance from ImageMagick? Try these options:

  • add more memory to your system, see the pixel cache;
  • add more cores to your system, see threads of execution support;
  • reduce lock contention with the tcmalloc memory allocation library;
  • push large images to a solid-state drive, see large image support.

Источник

ImageMagick

Use ImageMagick ® to create, edit, compose, or convert digital images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, WebP, HEIC, SVG, PDF, DPX, EXR and TIFF. ImageMagick can resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.

ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may use, copy, modify, and distribute in both open and proprietary applications. It is distributed under a derived Apache 2.0 license.

ImageMagick utilizes multiple computational threads to increase performance and can read, process, or write mega-, giga-, or tera-pixel image sizes.

The current release is ImageMagick 7.1.0-9. It runs on Linux, Windows, Mac Os X, iOS, Android OS, and others.

Читайте также:  Hp deskjet 2130 driver windows 10

The authoritative ImageMagick web site is https://imagemagick.org. The authoritative source code repository is https://github.com/ImageMagick/ImageMagick. We continue to maintain the legacy release of ImageMagick, version 6, at https://legacy.imagemagick.org.

Features and Capabilities

Here are just a few examples of what ImageMagick can do for you:

Animation create a GIF animation sequence from a group of images.
Bilateral blur non-linear, edge-preserving, and noise-reducing smoothing filter.
Color management accurate color management with color profiles or in lieu of— built-in gamma compression or expansion as demanded by the colorspace.
Color thresholding force all pixels in the color range to white otherwise black.
Command-line processing utilize ImageMagick from the command-line.
Complex text layout bidirectional text support and shaping.
Composite overlap one image over another.
Connected component labeling uniquely label connected regions in an image.
Convex hull smallest area convex polygon containing the image foreground objects. In addition, the minimum bounding box and unrotate angle are also generated.
Decorate add a border or frame to an image.
Delineate image features Canny edge detection, Hough lines.
Discrete Fourier transform implements the forward and inverse DFT.
Distributed pixel cache offload intermediate pixel storage to one or more remote servers.
Draw add shapes or text to an image.
Encipher or decipher an image convert ordinary images into unintelligible gibberish and back again.
Format conversion convert an image from one format to another (e.g. PNG to JPEG).
Generalized pixel distortion correct for, or induce image distortions including perspective.
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.
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.
Histogram equalization use adaptive histogram equalization to improve contrast in images.
Image cache secure methods and tools to cache images, image sequences, video, audio or metadata in a local folder..
Image calculator apply a mathematical expression to an image, image sequence, or image channels.
Image gradients create a gradual blend of two colors whose shape is horizontal, vertical, circular, or elliptical.
Image identification describe the format and attributes of an image.
ImageMagick on the iPhone convert, edit, or compose images on your iOS device such as the iPhone or iPad.
Large image support read, process, or write mega-, giga-, or tera-pixel image sizes.
Montage juxtapose image thumbnails on an image canvas.
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.
Noise and color reduction Kuwahara Filter, mean-shift.
Perceptual hash map visually identical images to the same or similar hash— useful in image retrieval, authentication, indexing, or copy detection as well as digital watermarking.
Special effects blur, sharpen, threshold, or tint an image.
Text & comments insert descriptive or artistic text in an image.
Threads of execution support ImageMagick is thread safe and most internal algorithms execute in parallel to take advantage of speed-ups offered by multicore processor chips.
Transform resize, rotate, deskew, crop, flip or trim an image.
Transparency render portions of an image invisible.
Virtual pixel support convenient access to pixels outside the image boundaries.

Examples of ImageMagick Usage shows how to use ImageMagick from the command-line to accomplish any of these tasks and much more. Also, see Fred’s ImageMagick Scripts: a plethora of command-line scripts that perform geometric transforms, blurs, sharpens, edging, noise removal, and color manipulations. With Magick.NET, use ImageMagick without having to install ImageMagick on your server or desktop. Finally, see Snibgo’s ImageMagick Cookbook for Windows-based ImageMagick scripting.

© 1999-2021 ImageMagick Studio LLC

Источник

Оцените статью