2017 © Pedro Peláez
 

library watermark

Add watermark to image

image

tapakan/watermark

Add watermark to image

  • Sunday, May 1, 2016
  • by Tapakan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

ImageBuilder

Library that helps you easily add watermark to your images. It can be integrated with any system without problems., (*1)

Install

Edit composer.json file and add next lines in require section., (*2)

    "require": {
        "tapakan/watermark": "1.0.1"
    }

Using

require 'vendor/autoload.php'

use Tapakan\Watermark\Watermark;

$watermark = new Watermark($arg1, $arg2);

//$arg1 - Path to watermark file. For example: images/watermark.png
//$arg2 - By second argument you can change destination position of watermark. See Available positions sector.

// Then add watermark to someone image.
$watermark->add('/images/image.jpeg');

Image will be saved with same name and to the same directory., (*3)

Available Positions

There are 5 available constants to change the destination position of watermark., (*4)

CONSTANT POSITION
RIGHT_TOP_CORNER Right top.
Margin from borders 10px
RIGHT_DOWN_CORNER Right down.
Margin from borders 10px
LEFT_TOP_CORNER Left top.
Margin from borders 10px
LEFT_DOWN_CORNER Left down.
Margin from borders 10px
MIDDLE_CENTER Middle.
EVERYWHERE new Duplicating a watermark across the image.

The Versions

01/05 2016

dev-master

9999999-dev http://tapakan.github.io/Watermark

Add watermark to image

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Oganov

php image watermark

01/05 2016

1.0.1

1.0.1.0 http://tapakan.github.io/Watermark

Add watermark to image

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Oganov

php image watermark

26/04 2016

1.0.0

1.0.0.0 http://tapakan.github.io/Watermark

Add watermark to image

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Oganov

watermark add watermark php