mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 23:15:34 +08:00
Merge pull request #868 from mlorb/ml-sci-1215
Fix preview for images with transparent background [SCI-1215]
This commit is contained in:
commit
06fc0eac5e
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