Back to the snippets index

Label with image data

( Anthony 22/6/2008 )

This takes some information from the image and uses it in the label. In this case width x height.

IM code:

<?php
exec
("montage -geometry +0+0 -background skyblue -label \"%wx%h\" input.jpg output.jpg"); 
?>