first auto-rotation of images based on exif-Orientation tag
[phpfspot.git] / phpfspot_img.php
index 986fbccbb251a20930bccdf3abacfd4cfbb9189e..0afdd7b2d8dc5f728492d0dffd32b8ff405bd143 100644 (file)
@@ -22,10 +22,9 @@ class PHPFSPOT_IMG {
 
    public function show($idx, $width = "")
    {
-      $details = $this->parent->get_photo_details($idx);
+      $this->parent->gen_thumbs($idx);
 
-      foreach(Array($this->parent->cfg->thumb_width, $this->parent->cfg->photo_width) as $resolution)
-         $this->parent->resize_image($this->parent->translate_path($details['directory_path'])  ."/". $details['name'], $resolution);
+      $details = $this->parent->get_photo_details($idx);
 
       if($width == "")
          $fullpath = $this->parent->translate_path($details['directory_path'])  ."/". $details['name'];