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 |
How to get the ip address of the client?
What is final class and final method in php?
how to register website in internet
What is csrf token and how will you add csrf token in ajax?
hi abinashg i think u have experience in php plz tell me more about php now i raearlly want to do php wat is the future.my email id atul_saini2@yahoo.co.in.plz guide me thanks...........
How do I repair phpmyadmin?
What kind of variable is age?
How to return ascii value of character in php?
Write a query to find the 2nd highest salary of an employee from the employee table?
What is the use of hooks?
What is an abstract class in php?
What is framework in php?