fix thumb image
This commit is contained in:
parent
5f5acf9b6d
commit
a0768d5076
|
@ -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_fixed_width.url
|
||||
"thumb-src" => a.file.thumb.url
|
||||
}
|
||||
end
|
||||
{
|
||||
|
|
|
@ -50,10 +50,6 @@ class GalleryUploader < CarrierWave::Uploader::Base
|
|||
# end
|
||||
|
||||
version :thumb do
|
||||
process :resize_to_fill => [200, 200]
|
||||
end
|
||||
|
||||
version :thumb_fixed_width do
|
||||
process :resize_to_limit => [200, 0]
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue