2017 © Pedro Peláez
 

library webcamoverlay

Provides image overlay functionality for IP cam images.

image

randomhost/webcamoverlay

Provides image overlay functionality for IP cam images.

  • Monday, May 21, 2018
  • by Chi-Yu
  • Repository
  • 3 Watchers
  • 2 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

randomhost/webcamoverlay

* 1. Purpose * 2. Example * 3. Usage * 4. License , (*2)

1. Purpose

This package was developed to compensate for the lack of image overlay capabilities of some less sophisticated IP cameras. It takes the original image as uploaded by the camera from the web server and uses the GD library to modify the image on the fly before displaying it to the website visitor., (*3)

Features:, (*4)

  • picture watermarking with configurable image positions
  • text watermarking (original image "modified" date + freely configurable text)
  • configurable timed overlay image ("downtime" picture)
  • image scaling

2. Example

Original Image Modified Image
Original Image ![Modified Image][4]

3. Usage

A basic approach at using this package could look like this:, (*5)

<?php

declare(strict_types=1);

use \randomhost\Image\Webcam\Overlay;

require_once '/path/to/vendor/autoload.php';

$overlay = new Overlay();
$overlay->setWebcamImagePath('webcam.jpg');
$overlay->render();

This will instantiate the class, set the name of the uploaded webcam image and just render it without any overlay., (*6)

Assuming that you named this file webcam.php, you should now be able to access your webcam image at https://example.com/webcam.php, (*7)

A more detailed example can be found in src/www/index.php., (*8)

4. License

See LICENSE.txt for full license details., (*9)

The Versions

21/05 2018

dev-master

9999999-dev https://www.random-host.com

Provides image overlay functionality for IP cam images.

  Sources   Download

BSD-3-Clause new-bsd

The Requires

 

The Development Requires

image webcam

21/05 2018

1.0.3

1.0.3.0 https://www.random-host.com

Provides image overlay functionality for IP cam images.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

image webcam

18/09 2016

1.0.2

1.0.2.0 https://www.random-host.com

Provides image overlay functionality for IP cam images.

  Sources   Download

new-bsd

The Requires

 

The Development Requires

image webcam

17/09 2016

1.0.1

1.0.1.0 https://www.random-host.com

Provides image overlay functionality for IP cam images.

  Sources   Download

new-bsd

The Requires

 

The Development Requires

image webcam

17/09 2016

1.0.0

1.0.0.0 https://www.random-host.com

Provides image overlay functionality for IP cam images.

  Sources   Download

new-bsd

The Requires

 

The Development Requires

image webcam