ImageMagick
| ImageMagick | |
|---|---|
| Sviluppatore | ImageMagick Studio LLC |
| Ultima versione | 6.6.2-10 (30 giugno 2010) |
| Sistema operativo | Multipiattaforma |
| Linguaggio | C |
| Genere | Elaborazione digitale delle immagini Visualizzatore di immagini |
| Licenza | ImageMagick License (Licenza libera) |
| Sito web | http://imagemagick.org |
ImageMagick è una suite di programmi liberi per la creazione, modifica e visualizzazione di immagini bitmap.
È distribuita con una licenza compatibile con la GNU GPL ed è disponibile su tutti i principali sistemi operativi.
Indice |
Utilizzi [modifica]
La suite può essere utilizzata per convertire tra differenti formati di immagine (ne supporta oltre 100)[1], può applicare le più comuni trasformazioni (traslazione, riflessione, rotazione, ecc.), può essere usata per regolare i colori delle immagini, per applicare vari effetti speciali o anche per disegnare testo, linee, poligoni, ellissi o curve di Bézier.[2]
Interfacciamento [modifica]
L'utilizzo della suite avviene tipicamente attraverso una serie di programmi con interfaccia a riga di comando.
È possibile sfruttare le potenzialità della suite anche attraverso le interfacce disponibili per tutti i linguaggi di programmazione più diffusi:[3]
| Linguaggio | Interfaccia |
|---|---|
| Ada |
|
| C |
|
| Ch[4] |
|
| COM+ |
|
| C++ |
|
| Java |
|
| LabVIEW |
|
| Lisp |
|
| Neko/haXe |
|
| .NET |
|
| Pascal |
|
| Perl |
|
| PHP |
|
| Python |
|
| REALbasic |
|
| Ruby |
|
| Tcl/Tk |
|
| RPC XML |
|
Esempi [modifica]
Seguono alcuni esempi pratici di utilizzo della suite.[5]
Convertire img1.jpg (formato JPEG) in img2.png (formato PNG):
convert img1.jpg img2.png
Ridimensionare img ad una dimensione di 300x200px:
mogrify -resize 300x200 img
Ridimensionare tutte le immagini con estensione jpg presenti nella directory corrente ad una larghezza di 300px (l'altezza viene determinata automaticamente in modo da mantenere le proporzioni)
mogrify -resize 300x *.jpg
Rimpicciolire img1.jpg della metà e salvarla in un nuovo file, img2.png, con un nuovo formato (png):
convert img1.jpg -resize 50% img2.png
Formati supportati [modifica]
Lettura e scrittura [modifica]
- 8BIM (risorsa Photoshop)
- APP1 (risorsa Photoshop)
- AVS (immagine AVS X)
- BIE (Joint Bi-level Image Experts Group interchange format)
- BMP (Windows bitmap)
- CIN (Kodak Cineon Image Format)
- CMYK (campionatura grezza ciano, magenta, giallo e nero)
- CMYKA (campionatura grezza ciano, magenta, giallo, nero e canale alpha)
- DCX (ZSoft IBM PC Paintbrush multipagina)
- DIB (Windows bitmap)
- DPX (Digital Picture Exchange)
- EPDF (immagina incapsulata in PDF)
- EPI (Adobe Encapsulated PostScript Interchange format)
- EPS (Adobe Encapsulated PostScript)
- EPSF (Adobe Encapsulated PostScript)
- EPSI (Adobe Encapsulated PostScript Interchange format)
- EPT (Adobe Encapsulated PostScript with TIFF preview)
- FAX (Group 3 FAX)
- FITS (Flexible Image Transport System)
- FPX (FlashPix Format)
- G3 (Group 3 FAX)
- GIF (CompuServe graphics interchange format)
- GIF87 (CompuServe graphics interchange format (version 87a))
- GRAY (Raw gray samples (8 or 16 bits, depending on the image depth))
- H (Internal format)
- HTML (HTML con mappa immagine)
- ICB (Truevision Targa image)
- ICM (ICC Color Profile)
- IPTC (IPTC Newsphoto)
- JBG (Joint Bi-level Image experts Group interchange format)
- JBIG (Joint Bi-level Image experts Group interchange format)
- JNG (Multiple-image Network Graphics)
- JP2 (JPEG-2000 JP2 File Format Syntax)
- JPC (JPEG-2000 Code Stream Syntax)
- JPEG (Joint Photographic Experts Group JFIF format)
- JPG (Joint Photographic Experts Group JFIF format)
- LOGO (ImageMagick Logo)
- M2V (MPEG-2 Video Stream)
- MAP (Colormap intensities (8 or 16 bits, depending on the image depth) and indices (8 or 16 bits, depending n whether colors exceeds 256).)
- MIFF (Magick Image File Format)
- MNG (Multiple-image Network Graphics)
- MONO (Bi-level bitmap in least-significant- -byte-first order)
- MPEG (MPEG-1 Video Stream)
- MPG (MPEG-1 Video Stream)
- MSL (Magick Scripting Language)
- MTV (MTV Raytracing image format)
- MVG (Magick Vector Graphics)
- OTB (On-the-air bitmap)
- P7 (Xv thumbnail format)
- PAL (16bit/pixel interleaved YUV)
- PALM (Palm Pixmap format)
- PBM (Portable bitmap format (black and white))
- PCD (Photo CD)
- PCDS (Photo CD)
- PCT (Apple Macintosh QuickDraw/PICT)
- PCX (ZSoft IBM PC Paintbrush)
- PDB (Palm Database ImageViewer Format)
- PDF (Portable Document Format)
- PGM (Portable graymap format (gray scale))
- PICON (Personal Icon)
- PICT (Apple Macintosh QuickDraw/PICT)
- PM (X Window system pixmap (color))
- PNG (Portable Network Graphics)
- PNM (Portable anymap)
- PPM (Portable pixmap format (color))
- PS (Adobe PostScript)
- PS2 (Adobe PostScript livello II)
- PS3 (Adobe PostScript livello III)
- PSD (Adobe Photoshop bitmap)
- PTIF (Pyramid encoded TIFF)
- RAS (SUN Rasterfile)
- RGB (Raw red, green, and blue samples (8 or 16 bits, depending on the image depth))
- RGBA (Raw red, green, blue, and matte samples (8 or 16 bits, depending on the image depth))
- ROSE (70x46 Truecolor test image)
- SGI (Irix RGB image)
- SUN (SUN Rasterfile)
- SVG (Scalable Vector Graphics)
- TEXT (Raw text)
- TGA (Truevision TGA image)
- TIF (Tagged Image File Format)
- TIFF (Tagged Image File Format)
- TXT (Raw text)
- UYVY (16bit/pixel interleaved YUV)
- VDA (Truevision Targa image)
- VICAR (VICAR rasterfile format)
- VID (Visual Image Directory)
- VIFF (Khoros Visualization image)
- VST (Truevision Targa image)
- WBMP (Wireless Bitmap (level 0) image)
- X (X Image)
- XBM (X Window system bitmap (black and white))
- XPM (X Window system pixmap (color))
- XV (Khoros Visualization image)
- XWD (X Window system window dump (color))
- YUV (CCIR 601 4:1:1)
Sola lettura [modifica]
- AFM (Adobe font metrics)
- ART (PF1: 1st Publisher)
- AVI (Audio/Visual Interleaved)
- CUT (DR Halo)
- DCM (Digital Imaging and Communications in Medicine image)
- DPS (Display PostScript)
- DPX (Digital Moving Picture Exchange)
- FILE (Uniform Resource Locator)
- FTP (Uniform Resource Locator)
- GRADIENT (Gradual passing from one shade to another)
- GRANITE (Granite texture)
- HTTP (Uniform Resource Locator)
- ICO (Microsoft icon)
- ICON (Microsoft icon IMPLICIT)
- LABEL (Text image format)
- MPR (Magick Persistent Registry)
- MSL (Magick Scripting Language)
- NETSCAPE (Netscape 216 color cube)
- NULL (Constant image of uniform color)
- PDB (Pilot Image Format)
- PFA (Adobe Type 1 font file)
- PFB (Adobe Type 1 font file)
- PFM (Adobe Type 1 font file)
- PIX (Alias/Wavefront RLE image format)
- PLASMA (Plasma fractal image)
- PWP (Seattle Film Works)
- RLA (Alias/Wavefront image)
- RLE (Utah Run length encoded image)
- SCT (Scitex HandShake)
- SFW (Seattle Film Works)
- STEGANO (Steganographic image)
- SVG (Scalable Vector Graphics)
- TILE (Tile image with a texture)
- TIM (PSX TIM)
- TTF (TrueType font)
- WMF (Windows Metafile)
- WPG (WordPerfect Graphics)
- XC (Constant image uniform color)
- XCF (GIMP image)
Note [modifica]
- ^ (EN) ImageMagick Image Formats
- ^ Introduzione, dal sito ufficiale di ImageMagick.
- ^ Elenco interfacce disponibili, dal sito ufficiale di ImageMagick.
- ^ Ch è un interprete multipiattaforma per i linguaggi C e C++.
- ^ (EN) Examples of ImageMagick Usage
Bibliografia [modifica]
- Michael Still, The Definitive Guide to ImageMagick (in inglese), Apress, 2005. ISBN 9781590595909
Voci correlate [modifica]
Altri progetti [modifica]
Commons contiene immagini o altri file su ImageMagick
Collegamenti esterni [modifica]
|
|