[-] Project: Fix bug when you want to upload (and resize) an image
This commit is contained in:
@@ -119,6 +119,8 @@ class ImageManagerCore
|
||||
*/
|
||||
public static function resize($src_file, $dst_file, $dst_width = null, $dst_height = null, $file_type = 'jpg', $force_type = false)
|
||||
{
|
||||
clearstatcache(true, $src_file);
|
||||
|
||||
if (!file_exists($src_file) || !filesize($src_file))
|
||||
return false;
|
||||
list($src_width, $src_height, $type) = getimagesize($src_file);
|
||||
|
||||
Reference in New Issue
Block a user