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 1 - Anthony 23/6/2008
Read a images width and height into a variable.
<?php$Image_dimensions = exec("convert input.jpg -format \"%wx%h\" info:- ");echo $Image_dimensions;?>
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