Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

PHP image functions
(1 viewing) (1) Guest
All your queries regarding
PHP Installation,
Binding Apache-PHP-MySQL,
and tonnes more... will be solved in this forum
  • Page:
  • 1
TOPIC:

PHP image functions

PHP image functions 1 year, 4 months ago #460

  • kuldeep
  • OFFLINE
  • Junior Boarder
  • Posts: 35
  • Karma: 0
How can we get the properties (size, type, width, height) of an image using PHP image functions?

Thanks in advance

Re: PHP image functions 1 year, 2 months ago #544

  • avan12
  • OFFLINE
  • Junior Boarder
  • Posts: 35
  • Karma: 0
getimagesize
Get the size of an image
$size = getimagesize($filename);

image_type_to_extension
Get file extension for image type
Returns a string with the extension corresponding to the given image type

image_type_to_mime_type
Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetype.

image2wbmp
Output image to browser or file.
  • Page:
  • 1
Time to create page: 1.15 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download