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 is namespace in php?
What is the ioncube php loader?
How can we increase execution time of a php script?
Explain about Functions in PHP?
How to upload any files extension in our database Ex.(.doc,.txt,mp4,mp3 etc.)in php
Write a program in php to find the occurrence of a word in a string?
how prepare the testing documentation.
How to upload file in php?
What beforeFilter() is used?
Explain what is the difference between session and cookie?
Tell me how to execute an sql query? How to fetch its result?
write function of the sentence traversal passing the parameter, e.g input:this is input sentence. output:sentence input is this.