Skip to content

Commit

Permalink
[-] Project: Fix bug when you want to upload (and resize) an image
Browse files Browse the repository at this point in the history
  • Loading branch information
PrestaEdit authored and Damien Metzger committed Dec 31, 2012
1 parent a18eb5b commit 1986ed9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/ImageManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public static function checkImageMemoryLimit($image)
*/
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);
Expand Down

0 comments on commit 1986ed9

Please sign in to comment.