diff --git a/src/Intervention/Image/File.php b/src/Intervention/Image/File.php index 0431a2e7..b1dd26aa 100644 --- a/src/Intervention/Image/File.php +++ b/src/Intervention/Image/File.php @@ -58,4 +58,21 @@ class File return $this; } + + /** + * Get file size + * + * @return mixed + */ + public function filesize() + { + $path = $this->basePath(); + + if (file_exists($path) && is_file($path)) { + return filesize($path); + } + + return false; + } + }