2017 © Pedro Peláez
 

silverstripe-module silverstripe-watermarking

Watermarking for images in SilverStripe

image

samthejarvis/silverstripe-watermarking

Watermarking for images in SilverStripe

  • Saturday, February 20, 2016
  • by samthejarvis
  • Repository
  • 2 Watchers
  • 4 Stars
  • 149 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 1 Versions
  • 15 % Grown

The README.md

Silverstripe Watermarking

This module adds a watermarking method for images. Chainable and available on the Image class., (*1)

Installation

composer require samthejarvis/silverstripe-watermarking dev-master

Adds a Watermarking tab to /admin/settings. Here you can specify a watermark image as well as transparency and position defaults., (*2)

Requirements

  • SilverStripe Framework 3.1

Usage

$Image.Watermark

$Image.CroppedImage(300, 300).Watermark

$Image.CroppedImage(300, 300).Watermark(5, 50);

Position

The position parameter takes an integer from 1 to 9 and sets the watermark to appear to that number's corresponding position on a keypad., (*3)

E.g. 5 will set the watermark to appear in the center., (*4)

789
456
123

Transparency

The transparency parameter takes an integer from 0 to 100., (*5)

Credit notes

Configurable GD watermarking based on memdev/silverstripe-watermarkable., (*6)

The Versions

20/02 2016

dev-master

9999999-dev

Watermarking for images in SilverStripe

  Sources   Download

MIT

The Requires

 

by Sam Jarvis

silverstripe images watermark watermarking