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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue