0
我有ImageUploader類,我想在保存特定版本後將圖像的原始大小保存爲原始圖像。幫我解決這個Carrierwave在創建版本後存儲原始文件
上傳
class ImageUploader < IconBase
process :resize_to_fill => [490,68]
version :normal do
process resize_to_fill: [245,34]
def full_filename(for_file = model.logo.file)
"avatar1.png"
end
end
def filename
"avatar.png"
end
end