Sha256: f5251993f075a81efed3873e84eb65dbb092512a6aa83af41f981a84039f805c

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

require 'paperclip'

Paperclip.options[:command_path] = IMAGE_MAGICK_PATH if defined? IMAGE_MAGICK_PATH

begin
  Paperclip.run('ffmpeg', '-L')
rescue Paperclip::CommandNotFoundError
  Radiant.config['assets.create_video_thumbnails?'] = false
  Rails.logger.warn "FFmpeg executable not found: video thumbnailing disabled."
rescue Paperclip::PaperclipCommandLineError => e
  Rails.logger.warn "FFmpeg is present but returns an error: #{e}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radiant-1.0.0.rc2 vendor/extensions/clipped/config/initializers/processors.rb