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 |
Do you know how can php and html interact?
Is php dying 2018?
What does addslashes do in php?
What is difference between get and post?
can you give me an example code of calling java script function in php variable using AJAX.or with out ajax??????
Please explain is it possible to use com component in php?
How I use global variable in another page without using $_GET method?
how to get server date and time?
what is this error "Call to unsupported or undefined function mysql_connect();" and when you will get this?
Where do we use get and post?
What is regular expression in javascript?
What is the use of $_request variable?