get image width and height - getimagesize() - Php

get image size

Snippet Code


  
Rate this page :
  [ 0 votes]

use getimagesize() to get the width and height of an image in PHP. You can even get the type of an image using this function.

list($imgWidth, $imgHeight) = getimagesize("image-path");

Tags


Ask Questions

Ask Question