Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can I find the width and height of an image resource?

Answers were Sorted based on User's Feedback



How can I find the width and height of an image resource? ..

Answer / laxmikant

getimagesize();

Is This Answer Correct ?    5 Yes 3 No

How can I find the width and height of an image resource? ..

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

Post New Answer

More PHP Interview Questions

What good is polymorphism?

0 Answers  


How is it possible to remove escape characters from a string?

0 Answers  


Explain about objects in PHP?

0 Answers  


What is 'float' property in css?

0 Answers  


What are php libraries?

0 Answers  


What is ltrim?

0 Answers  


Explain me what is x+ mode in fopen() used for?

0 Answers  


How to upload a file (may be a .txt or a .doc file) from a php script/file?

1 Answers  


How to find the position of the first occurrence of a substring in a string?

0 Answers  


How will you create a bi-lingual site (multiple languages) ?

3 Answers  


Will a comparison of an integer 12 and a string "13" work in php?

0 Answers  


How to make database connection in php?

0 Answers  


Categories