KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
paperclip-watermark
★ 26
Open GitHub ↗
module PaperclipWatermark
Download README (.md)
Explore Similar Repositories
qpDUNES
:
qpDUNES - an implementation of the DUal NEwton Strategy for quadratic programming
VU-sentiment-lexicon
:
Python library providing sentiment lexicons.
sass_icon_fonts
:
Sass 3.2 integration with modern icon fonts.
NancyRabbit
:
This is a command line self host with auto reload feature for the Nancy web framework
ruhue
:
Experimenting with the Philips Hue, documenting my progress.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
paperclip-watermark
?
Download (.md)
# PaperclipWatermark [](https://gemnasium.com/vikewoods/paperclip-watermark) [](https://travis-ci.org/vikewoods/paperclip-watermark) Papercli Watermark processor ## Usage Edit your paperclip model: ```ruby # app/models/assets.rb class Asset < ActiveRecord::Base attr_accessible :attachment # Paperclip image attachments has_attached_file :attachment, :processors => [:watermark], :styles => { :thumb => '150x150>', :original => { :geometry => '800>', :watermark_path => "#{Rails.root}/public/images/logo.png" } }, :url => '/assets/attachment/:id/:style/:basename.:extension', :path => ':rails_root/public/assets/attachment/:id/:style/:basename.:extension', :default_url => "/images/:style/mising.png" end ``` ## Installation Add this line to your application's Gemfile: ```ruby gem 'paperclip-watermark' ``` or install from github: ```ruby gem 'paperclip-watermark', :github => 'vikewoods/paperclip-watermark' ``` And then execute: $ bundle install Or install it yourself as: ```ruby gem install paperclip-watermark ``` ## Contributing 1. Fork it 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 new Pull Request