method

preview

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: VideoPreviewer
preview(**options) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/previewer/video_previewer.rb, line 21
    def preview(**options)
      download_blob_to_tempfile do |input|
        draw_relevant_frame_from input do |output|
          yield io: output, filename: "#{blob.filename.base}.jpg", content_type: "image/jpeg", **options
        end
      end
    end
Register or log in to add new notes.