2017 © Pedro Peláez
 

library image-stacker

Image stacker is a package to combine different images to one single image.

image

bjorvack/image-stacker

Image stacker is a package to combine different images to one single image.

  • Tuesday, October 10, 2017
  • by bjorvack
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 5 % Grown

The README.md

Image stacker

Latest Version GitHub issues open Packagist Build Status, (*1)

Image stacker is a package to combine different images to one single image., (*2)

Instalation

composer install bjorvack/image-stacker

Usage

Creating a new stack

Creating a new stack only requires a stack name. Giving the stack additional parameters like max width or height limits the way the stack can grow., (*3)

$stacker = new Stacker('name');
$stacker = new Stacker('name', <int maxWidth>, <int maxWidth>, <bool growVertical>, <bool growHorizontal>);

Adding images to the stack

Using the the addImage function an Image object can be added to the stack., (*4)

An Image needs a path and a name attribute. If the width / height aren't provided the size of the file is loaded from the file itself., (*5)

$image = new Image('path', 'name', <int width>, <int height>);
$stacker->addImage($image);

Creating the stacked image

$image = Image::createFromStacker($stacker, 'storagepath');

Getting the position of an image in the stack

When the stack function is called the x and y attributes for the images are set. You can access the using the getX and getY functions., (*6)

foreach($stacker->getImages() as $image) {
    $image->getY();
    $image->getX();
}

Exporters

A stack can be exported as a .json file or a .css file. The .png file is made automatically., (*7)

$stacker = new Stacker('name');

JsonExporter::save($stacker, 'path');
StylesheetExporter::save($stacker, 'path');

The Versions

10/10 2017

dev-master

9999999-dev

Image stacker is a package to combine different images to one single image.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bjorvack

merge image combine merger-tool

29/09 2016

0.3

0.3.0.0

Image stacker is a package to combine different images to one single image.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bjorvack

merge image combine merger-tool

29/09 2016

dev-add-helper-classes

dev-add-helper-classes

Image stacker is a package to combine different images to one single image.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bjorvack

merge image combine merger-tool

29/09 2016

dev-css-exporter

dev-css-exporter

Image stacker is a package to combine different images to one single image.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bjorvack

merge image combine merger-tool

23/09 2016

dev-json-exporter

dev-json-exporter

Image stacker is a package to combine different images to one single image.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bjorvack

merge image combine merger-tool

15/09 2016

0.1

0.1.0.0

Image stacker is a package to combine different images to one single image.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bjorvack

merge image combine merger-tool

15/09 2016

v0.2

0.2.0.0

Image stacker is a package to combine different images to one single image.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bjorvack

merge image combine merger-tool