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() {
|
$('.show-gallery .show-content.col-sm-2').ready(function() {
|
||||||
if ($('.show-gallery .show-content.col-sm-2').eq(0).css('float') == 'left') {
|
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() {
|
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'))
|
resize_and_pad(w, h, (transparent? ? :transparent : now_album.album_colors.first['color']), (now_album.resize_gravity rescue 'Center'))
|
||||||
when 1
|
when 1
|
||||||
limit_process(w, h)
|
limit_process(w, h)
|
||||||
|
when 2
|
||||||
|
resize_to_fill(w, h)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,6 +7,7 @@ en:
|
||||||
thumb_process_option:
|
thumb_process_option:
|
||||||
- resize and padding
|
- resize and padding
|
||||||
- resize only
|
- resize only
|
||||||
|
- resize and crop
|
||||||
inner_page_layout: Inner Page Layout
|
inner_page_layout: Inner Page Layout
|
||||||
card_style: Card Style
|
card_style: Card Style
|
||||||
grid_style: Grid Style
|
grid_style: Grid Style
|
||||||
|
|
|
@ -7,6 +7,7 @@ zh_tw:
|
||||||
thumb_process_option:
|
thumb_process_option:
|
||||||
- 縮放並填充
|
- 縮放並填充
|
||||||
- 僅縮放
|
- 僅縮放
|
||||||
|
- 縮放並裁切
|
||||||
inner_page_layout: 內頁頁面樣式
|
inner_page_layout: 內頁頁面樣式
|
||||||
card_style: 卡片樣式
|
card_style: 卡片樣式
|
||||||
grid_style: 格子排版樣式
|
grid_style: 格子排版樣式
|
||||||
|
|
Loading…
Reference in New Issue