[-] Project: Fix bug when you want to upload (and resize) an image
This commit is contained in:
Damien Metzger
2012-12-31 00:51:37 -08:00
+2
View File
@@ -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);