Sha256: ab9990f2762becfa67eb3b8c89414eda130765d244810eea347ca6da762e97cc
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 Bytes
Contents
module Paperclip # Compresses the JPEG and PNG files class Compression < Processor def make case ImageSpec.new(@file).content_type when 'image/jpeg' then make_jpeg when 'image/png' then make_png else @file end end private def make_jpeg PaperclipCompression::Jpeg.make(@file, @options) end def make_png PaperclipCompression::Png.make(@file, @options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paperclip-compression-0.3.2 | lib/paperclip-compression/paperclip/compression.rb |