mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-05 14:41:53 +08:00
10 lines
488 B
Ruby
10 lines
488 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'active_storage/previewer/libreoffice_previewer'
|
|
|
|
Rails.application.config.active_storage.previewers = [ActiveStorage::Previewer::PopplerPDFPreviewer,
|
|
ActiveStorage::Previewer::LibreofficePreviewer]
|
|
|
|
Rails.application.config.active_storage.variable_content_types << 'image/svg+xml'
|
|
|
|
Rails.application.config.active_storage.variant_processor = :vips if ENV['ACTIVESTORAGE_ENABLE_VIPS'] == 'true'
|