debug info for thumbing

rails2
Espen Antonsen 2009-08-11 10:28:56 +02:00
parent 731dabcc6c
commit d6fa74c39b
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ class Photo < ActiveRecord::Base
def create_thumbnails
ImageScience.with_image(self.path_original) do |img|
puts "thumb " + self.path_original
img.cropped_thumbnail(200) do |thumb|
thumb.save APP_CONFIG[:thumbs_path] + self.album.path + "/" + self.id.to_s + "_collection" + self.extension
end