change show method image thumb size
This commit is contained in:
parent
481f345382
commit
5f5acf9b6d
|
@ -24,7 +24,7 @@ class GalleriesController < ApplicationController
|
||||||
{
|
{
|
||||||
"image-description" => a.description,
|
"image-description" => a.description,
|
||||||
"link_to_show" => "/" + I18n.locale.to_s + params[:url] + "/-" + a.id.to_s + "?method=theater",
|
"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
|
end
|
||||||
{
|
{
|
||||||
|
|
|
@ -53,6 +53,10 @@ class GalleryUploader < CarrierWave::Uploader::Base
|
||||||
process :resize_to_fill => [200, 200]
|
process :resize_to_fill => [200, 200]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
version :thumb_fixed_width do
|
||||||
|
process :resize_to_limit => [200, 0]
|
||||||
|
end
|
||||||
|
|
||||||
version :theater do
|
version :theater do
|
||||||
process :resize_to_limit => [1920, 1080]
|
process :resize_to_limit => [1920, 1080]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue