add crop option
This commit is contained in:
parent
92e2673c09
commit
46df77f0e0
|
@ -1,6 +1,7 @@
|
|||
$('.show-gallery .show-content.col-sm-2').ready(function() {
|
||||
if ($('.show-gallery .show-content.col-sm-2').eq(0).css('float') == 'left') {
|
||||
$('.show-gallery .show-content.col-sm-2').eq(0).parent().css('float', 'left')
|
||||
$('.show-gallery .show-content.col-sm-2').eq(0).parent().css('float', 'left');
|
||||
$('.show-gallery .show-content.col-sm-2').eq(0).parent().css('width', '100%');
|
||||
}
|
||||
})
|
||||
window.GalleryTheater = function() {
|
||||
|
|
|
@ -182,6 +182,8 @@ class GalleryUploader < CarrierWave::Uploader::Base
|
|||
resize_and_pad(w, h, (transparent? ? :transparent : now_album.album_colors.first['color']), (now_album.resize_gravity rescue 'Center'))
|
||||
when 1
|
||||
limit_process(w, h)
|
||||
when 2
|
||||
resize_to_fill(w, h)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -7,6 +7,7 @@ en:
|
|||
thumb_process_option:
|
||||
- resize and padding
|
||||
- resize only
|
||||
- resize and crop
|
||||
inner_page_layout: Inner Page Layout
|
||||
card_style: Card Style
|
||||
grid_style: Grid Style
|
||||
|
|
|
@ -7,6 +7,7 @@ zh_tw:
|
|||
thumb_process_option:
|
||||
- 縮放並填充
|
||||
- 僅縮放
|
||||
- 縮放並裁切
|
||||
inner_page_layout: 內頁頁面樣式
|
||||
card_style: 卡片樣式
|
||||
grid_style: 格子排版樣式
|
||||
|
|
Loading…
Reference in New Issue