Setting the size in resize to print an image 6"x4"


The sizes used in ImageMagick are in pixels; to get an image into a size for printing e.g. 6"x4" you need to do something like this:

<?php
exec
("convert input.jpg -resize 600x400 -density 100x100 output.jpg");
?>