Sha256: e31268f2b9fa5d4ecf4ba9f7f40ddb0b3b4537e9c47469b6084888d0d4eb8253
Contents?: true
Size: 565 Bytes
Versions: 8
Compression:
Stored size: 565 Bytes
Contents
$LOAD_PATH.unshift(File.expand_path('../lib')) require 'balloon' require "mini_magick" Balloon.configure do |config| config.store_storage = :file config.root = "output" end class Upload < Balloon::Base uploader :image uploader_dir 'uploads/images' uploader_mimetype_white %w[image/jpeg image/png image/gif image/webp] uploader_name_format name: proc { |img| img.file_name } uploader_type_format 'webp' uploader_size thumb: '100x100', small: '200x>' def file_name "output_gif" end end upload = Upload.new("input.gif") upload.upload_store
Version data entries
8 entries across 8 versions & 1 rubygems