Method: VideoUploader#png_name

Defined in:
app/uploaders/video_uploader.rb

#png_name(for_file, version_name) ⇒ Object

# Create a thumbnail version :gallery_thumb do

process thumbnail: [{format: 'jpg', quality: 10, size: "100x100", strip: true, logger: Rails.logger}]
def full_filename for_file
  png_name for_file, version_name
end

end



20
21
22
# File 'app/uploaders/video_uploader.rb', line 20

def png_name for_file, version_name
  %Q{#{version_name}_#{for_file.chomp(File.extname(for_file))}.jpg}
end