How can I find the width and height of an image resource?
<?php
$img = imagecreatetruecolor(400, 100);
echo imagesx($img); // 400
echo imagesy($img); // 100
?>
More images PHP Questions
How can I add text to an image?How can I find the colour of a pixel of an image?
How can I rotate an image?