paperclip-deflater
Deflate files in Paperclip before upload.
Installation
Add the paperclip-deflater gem to your Gemfile.
gem "paperclip-deflater"
And run bundle install.
Setup
class Something
has_attached_file :js,
s3_metadata: { content_encoding: 'gzip' },
styles: { gzip: {processors: [:deflater], format: '.gz'} },
path: "test/:id.:extension:format"
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Copyright
Copyright (c) 2014 Daisuke Taniwaki. See LICENSE for details.


