Snippets - With php

Snippets index page

NOTE: Most of the IM snippets have been tested on IM version 6.3.5 There may be some differences if you are using the code on other versions.

Get image data into a variable 2 - Anthony 23/6/2008

Read a images width and height into a variable.

  1. <?php
  2. exec("identify -format \"%wx%h\" input.jpg"$a);
  3. echo "Date and time taken = ".$a[0];
  4. ?>

For more examples and information check out the main Imagemagick section.

Batch file View

Check size before resizing View

Dividing an image View

Fonts Installed view View

Get image data into a variable 1 View

Get image data into a variable 2 View

Gravity option View

New image size in variable View

Row of images View

Setup Information View

Use an array View

Warhol effect View