https://github.com/takeyuweb/carrierwave-tinypng
TinyPNG support for CarrierWave
https://github.com/takeyuweb/carrierwave-tinypng
Last synced: 11 months ago
JSON representation
TinyPNG support for CarrierWave
- Host: GitHub
- URL: https://github.com/takeyuweb/carrierwave-tinypng
- Owner: takeyuweb
- License: mit
- Created: 2015-03-12T08:59:28.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-10-26T06:19:47.000Z (over 8 years ago)
- Last Synced: 2024-10-11T18:50:10.411Z (over 1 year ago)
- Language: Ruby
- Size: 121 KB
- Stars: 9
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# CarrierWave::TinyPNG
TinyPNG support for CarrierWave
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'carrierwave-tinypng'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install carrierwave-tinypng
## Usage
```ruby
CarrierWave::TinyPNG.configure do |config|
config.key = ENV['TINYPNG_KEY']
end
```
```ruby
class YourUploader < CarrierWave::Uploader::Base
include CarrierWave::RMagick
include CarrierWave::TinyPNG
process convert: 'png'
process :tinypng
end
```
## Contributing
1. Fork it ( https://github.com/takeyuweb/carrierwave-tinypng/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request