Make watermark configurable
This commit is contained in:
parent
b48e7813d2
commit
18dfacb933
3 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,7 @@ class TitreIdentiteWatermarkJob < ApplicationJob
|
|||
|
||||
MAX_IMAGE_SIZE = 1500
|
||||
SCALE = 0.9
|
||||
WATERMARK = Rails.root.join('app/assets/images/watermark.png')
|
||||
WATERMARK = Rails.root.join("app/assets/images/#{WATERMARK_FILE}")
|
||||
|
||||
def perform(blob)
|
||||
blob.open do |file|
|
||||
|
|
|
@ -23,3 +23,6 @@ APPLICATION_BASE_URL="https://www.demarches-simplifiees.fr"
|
|||
|
||||
# Personnalisation d'instance - Page externe "Disponibilité" (status page)
|
||||
# STATUS_PAGE_URL=""
|
||||
|
||||
# Personnalisation d'instance - fichier utilisé pour poser un filigrane sur les pièces d'identité
|
||||
# WATERMARK_FILE=""
|
||||
|
|
1
config/initializers/watermark.rb
Normal file
1
config/initializers/watermark.rb
Normal file
|
@ -0,0 +1 @@
|
|||
WATERMARK_FILE = ENV.fetch('WATERMARK_FILE', 'watermark.png')
|
Loading…
Reference in a new issue