How can I find the width and height of an image resource?
Answers were Sorted based on User's Feedback
Answer / jude jeevanraj.p
It is often useful to know the width and height of an image
resource. This can be achieved with the functions imagesx
and imagesy, like this:
<?php
$img = imagecreatetruecolor(400, 100);
echo imagesx($img); // 400
echo imagesy($img); // 100
?>
| Is This Answer Correct ? | 3 Yes | 2 No |
What does sign mean php?
my english is not too good then what we apply for a php programer post
What is default session time and path in PHP. How to change it?
What are the advantages and disadvantages of Cascading Style Sheets?
What is php simple definition?
Is php a case sensitive language?
What is a php class?
How to remove values saved in the current session?
Explain me soundex() and metaphone()?
What is slim framework?
How to convert a timezone from one to another ?
What is php destruct?