projects
/
phpfspot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8102401
)
don't recreate already existing thumbnails
author
Andreas Unterkircher
<unki@netshadow.at>
Tue, 5 Jun 2007 20:47:10 +0000
(20:47 +0000)
committer
Andreas Unterkircher
<unki@netshadow.at>
Tue, 5 Jun 2007 20:47:10 +0000
(20:47 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@18
fa6a889d
-dae6-447d-9e79-
4ba9a3039384
phpfspot_img.php
patch
|
blob
|
history
diff --git
a/phpfspot_img.php
b/phpfspot_img.php
index 3a2a322d4cebc03e5bfa52c88d9970fcda187539..ec6c7db92be9cfd13b6fa7fc23efc0eaf259dfdf 100644
(file)
--- 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)