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 and use in php?
What does accessing a class via :: means?
How to change the principal password?
What are different ways to redirect from on page to other?
What is url encoding and decoding in php?
Tell us how can we display the output directly to the browser?
What is json php?
How to create a text file in PHP?
How to connect SMTP server in php. I want to edit that in mantiss bug tracking tool. If anyone worked on mantiss software or in php, please give answer . I need to modify that in mantiss software.
How is it possible to set an infinite execution time for php script?
What is difference between put and post method in http?
What are the advantages of triggers in php?