Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Watermarking for spree images

branch: 0-60-stable

This branch is 0 commits ahead and 1 commit behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.markdown

SpreeWatermark

This adds a watermarking processor to spree product images. When the image is processed by paperclip, it will also be watermarked with the watermark images (if it exists) located at public/images/watermarks/ named for the image size (large.png, product.png, small.png, tiny.png).

Install

Add gem 'spree_watermark' to your gem file and place your watermark images in public/images/watermarks/

NOTE: BY DEFAULT, THIS WILL FORCE ALL OF YOUR ASSETS INTO PNG. YOU WILL NEED TO CUSTOMIZE AS BELOW TO CHANGE THIS BEHAVIOUR.

Customization

Override app/models/image_decorator.rb in your main app and plug in your own has_attached_file call.

Copyright (c) 2011 Azimuth Internet Services & Christopher Maujean, released under the New BSD License

Something went wrong with that request. Please try again.