Snippets - With php
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.
<?phpexec("identify -format \"%wx%h\" input.jpg", $a);echo "Date and time taken = ".$a[0];?>
For more examples and information check out the main Imagemagick section.
Batch file ViewCheck 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