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
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More images PHP Questions
How can I rotate an image?how to rotate an image using php code?
How can I find the colour of a pixel of an image?
How to display multiple images in a form path came from database and images are store in Image folder(assume 10 images are uploded that i want to display)
How can I add text to an image?
