De wikijoan
Salta a la navegació Salta a la cerca


ImageMagick és un requisit per a utilitzar Linpha com a programa de classificació de fotos.

ImageMagick is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. 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ézier curves.

Eines a la línia de comanda

ImageMagick includes a number of command-line utilities for manipulating images. Most of you are probably accustomed 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.

The ImageMagick command-line tools exit with a status of 0 if the command line arguments have a proper syntax and no problems are encountered. Expect a descriptive message and an exit status of 1 if any exception occurs such as improper syntax, a problem reading or writing an image, or any other problem that prevents the command from completing successfully.

In the paragraphs below, find a short description for each command-line tool. Click on the program name to get details about the program usage and a list of command-line options that alters how the program behaves. If you are just getting acquainted with ImageMagick, start with the convert program. Be sure to peruse Anthony Thyssen's tutorial on how to use ImageMagick utilities to convert, compose, or edit images from the command-line.


animate an image sequence on any X server.



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



overlap one image over another.



interpret and execute scripts written in the Magick Scripting Language (MSL).



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



display an image or image sequence on any X server.



describe the format and characteristics of one or more image files.



save 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.



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.



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



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.



Des de SourceForge, agafar la última versió estable

$ tar xvfz ImageMagick.tar.gz
$ cd ImageMagick-6.?.?
$ ./configure
$ make
$ make install

i reiniciar

Comprovar que funciona:

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

Nota Si no compila bé, hi ha un paquet del Ubuntu, encara que no instal.larà la versió més recent:

$ sudo apt-get install imagemagick 

s' la versió

creat per Joan Quintana Compte, novembre 2008