How can we get the properties (size, type, width, height) of
an image using PHP image functions?

Answer Posted / ansar

exif_imagetype()- for getting type of the image
getimagesize() - for getting size of the image
imagesx - for width
imagesy - for height

Is This Answer Correct ?    32 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to store the uploaded file to the final location?

512


What are the advantages of php mysql?

514


Explain difference between urlencode and urldecode?

552


What is difference between session_unset and session_destroy?

500


When to use get and post request?

547






Is php still used?

526


What are the options to transfer session ids?

579


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

1267


Does php require a web server?

508


What is difference between count or sizeof function in php?

528


What is difference between readonly and constant?

500


Explain the difference between unlink() and unset()?

527


What is the use of mysql_real_escape_string in php?

443


Why did you choose this particular career path?

8347


Explain me what is the use of header() function in php?

617