Images.php
authorAlan Knowles <alan@roojs.com>
Mon, 15 Oct 2012 09:20:41 +0000 (17:20 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 15 Oct 2012 09:20:41 +0000 (17:20 +0800)
Images.php

index b616476..3397cd1 100644 (file)
@@ -232,11 +232,17 @@ class Pman_Core_Images extends Pman
         //echo "SKALING?  $this->size";
         // acutally if we generated the image, then we do not need to validate the size..
         
+        
+        
         // if the mimetype is not converted..
         // then the filename should be original.{size}.jpeg
         $fn = $img->getStoreName() . '.'. $this->size . '.jpeg'; // thumbs are currenly all jpeg.!???
-       var_dump($fn);
+        
         if (!file_exists($fn)) {
+            $fn = $img->getStoreName()  . '.'. $this->size . '.'. $img->fileExt();
+        }
+        if (!file_exists($fn)) {            
+            
             $this->validateSize();
         }