Skip to content

Commit

Permalink
Fix: allow options in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim committed Oct 16, 2022
1 parent 23710c4 commit b4c3d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/previewers/heic_previewer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b4c3d57

Please sign in to comment.