write temp value first
This commit is contained in:
parent
8b2db9b9ef
commit
46380d63ad
1 changed files with 1 additions and 1 deletions
|
@ -94,8 +94,8 @@ 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)
|
||||
puts "thumb " + self.path_original
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue