From 8b2db9b9efd2b17b8a99167f481d61f3dad1e91e Mon Sep 17 00:00:00 2001 From: Espen Antonsen Date: Tue, 11 Aug 2009 10:44:51 +0200 Subject: [PATCH] temp not recreate existing --- app/models/photo.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/photo.rb b/app/models/photo.rb index df6d6de..f03d693 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -93,6 +93,7 @@ class Photo < ActiveRecord::Base def create_thumbnails + return if File.exists?(APP_CONFIG[:thumbs_path] + self.album.path + "/" + self.id.to_s + "_collection" + self.extension) ImageScience.with_image(self.path_original) do |img| puts "thumb " + self.path_original img.cropped_thumbnail(200) do |thumb|