mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 21:20:08 +08:00
fix preview for images with transparent background
This commit is contained in:
parent
cd6799d571
commit
f75a2710d5
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,8 @@ class Asset < ActiveRecord::Base
|
|||
has_attached_file :file,
|
||||
styles: { large: [Constants::LARGE_PIC_FORMAT, :jpg],
|
||||
medium: [Constants::MEDIUM_PIC_FORMAT, :jpg] },
|
||||
convert_options: { medium: '-quality 70 -strip' }
|
||||
|
||||
convert_options: { medium: '-quality 70 -strip',
|
||||
all: '-alpha remove' }
|
||||
validates_attachment :file,
|
||||
presence: true,
|
||||
size: {
|
||||
|
|
Loading…
Reference in a new issue