Jump to content

Get Image File Size From Path


JustinK101

Recommended Posts

How do I get an image file size? For example I have a path:

 

$image_path = "/usr/local/images/myimage.png";

 

Is there something like: $filesize = getfilesize($image_path);

                                  echo $filesize; //65430 bytes

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/197677-get-image-file-size-from-path/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.