From b4c3d576b668850686958e895c736ed7f40baac6 Mon Sep 17 00:00:00 2001 From: takahashim Date: Sun, 16 Oct 2022 16:46:56 +0900 Subject: [PATCH] Fix: allow options in `preview` --- app/previewers/heic_previewer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/previewers/heic_previewer.rb b/app/previewers/heic_previewer.rb index e8e06ba18..87b3620f4 100644 --- a/app/previewers/heic_previewer.rb +++ b/app/previewers/heic_previewer.rb @@ -18,7 +18,7 @@ def minimagick_exists? end end - def preview + def preview(**_options) download_blob_to_tempfile do |input| io = ImageProcessing::MiniMagick.source(input).convert("png").call yield io: io, filename: "#{blob.filename.base}.png", content_type: "image/png"