How to get image file size in php ?

I am explaining you, If you want to get image file size in php so you can easily get using filesize() in PHP. if you want to get image size then we can find it. It will return size on bytes.

Example:

<?php
echo filesize('webdeveloperindia.jpg') . ' bytes';
?>

One thought to “How to get image file size in php ?”

Leave a Reply

Your email address will not be published. Required fields are marked *

36 − = 29