diff --git a/app/controllers/galleries_controller.rb b/app/controllers/galleries_controller.rb index 1840757..62dbf5d 100644 --- a/app/controllers/galleries_controller.rb +++ b/app/controllers/galleries_controller.rb @@ -24,7 +24,7 @@ class GalleriesController < ApplicationController { "image-description" => a.description, "link_to_show" => "/" + I18n.locale.to_s + params[:url] + "/-" + a.id.to_s + "?method=theater", - "thumb-src" => a.file.thumb.url + "thumb-src" => a.file.thumb_fixed_width.url } end { diff --git a/app/uploaders/gallery_uploader.rb b/app/uploaders/gallery_uploader.rb index a87ac5f..150677b 100644 --- a/app/uploaders/gallery_uploader.rb +++ b/app/uploaders/gallery_uploader.rb @@ -53,6 +53,10 @@ class GalleryUploader < CarrierWave::Uploader::Base process :resize_to_fill => [200, 200] end + version :thumb_fixed_width do + process :resize_to_limit => [200, 0] + end + version :theater do process :resize_to_limit => [1920, 1080] end