X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot_img.php;h=ec6c7db92be9cfd13b6fa7fc23efc0eaf259dfdf;hp=3a2a322d4cebc03e5bfa52c88d9970fcda187539;hb=495fee6e4ea622177353c74425d546aedf467991;hpb=61f2970e221f8612e51e7802cc127819c4caa369 diff --git a/phpfspot_img.php b/phpfspot_img.php index 3a2a322..ec6c7db 100644 --- a/phpfspot_img.php +++ b/phpfspot_img.php @@ -52,6 +52,10 @@ class PHPFSPOT_IMG { public function resize_image($image, $width) { + // if thumbnail already exists, don't recreate it + if(file_exists(dirname($image) ."/thumbs/". $width ."_". basename($image))) + return; + $src_img = @imagecreatefromjpeg($image); if($src_img)