Tag: imagemagick

About

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.

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: G2F (Ada), MagickCore (C), MagickWand (C), ChMagick (Ch), ImageMagickObject (COM+), Magick++ (C++), JMagick (Java), L-Magick (Lisp), NMagick (Neko/haXe), MagickNet (.NET), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), IMagick (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images dynamically and automagically.

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

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

  • Format conversion: convert an image from one format to another (e.g. PNG to JPEG)
  • Transform: resize, rotate, crop, flip or trim an image
  • 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: create a GIF animation sequence from a group of images
  • Text & comments: insert descriptive or artistic text in an image
  • Image identification: describe the format and properties of an image
  • Composite: overlap one image over another
  • Montage: juxtapose image thumbnails on an image canvas
  • 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
  • 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
  • Large image support: read, process, or write mega- and giga-pixel image sizes
  • Threads of execution support: ImageMagick is thread safe and many internal algorithms are already threaded to take advantage of speed-ups offered by the dual and quad-core processor technologies

From www.imagemagick.org/script/index.php

 

I tried to do some Image Magick with PHP recently on an Ubuntu Feisty machine, and even though I had the required package: 'php5-imagick' installed, and I updated my php.ini with imagick.so, I kept getting the error Class 'Imagick' not found. This is how I eventually fixed it.

Or: How to convert multipage TIFF to PDF in PHP. Let's say you have a fax with multiple pages that has been stored as a TIFF and you want to convert it to PDF using PHP for digital document flow. In this article I will show you a tiff2pdf function for PHP, because it cannot be done directly with ImageMagick.