2017 © Pedro Peláez
 

library kartinki

Simple tool for creating previews of images.

image

happyproff/kartinki

Simple tool for creating previews of images.

  • Tuesday, March 17, 2015
  • by happyproff
  • Repository
  • 1 Watchers
  • 0 Stars
  • 157 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

kartinki

Simple tool for creating previews of images., (*1)

Latest Stable Version Build Status Scrutinizer Code Quality SensioLabsInsight, (*2)

Installing

  • Add "happyproff/kartinki": "*" to composer.json.
  • Run composer install

Simple usage example

For example, filename.jpg is 1600x1200., (*3)

``` php <?php use happyproff\Kartinki\Kartinki;, (*4)

$thumbnails = (new Kartinki)->createImageVersions( '/path/to/image/filename.jpg', [ 'square' => '200x200', 'normal' => '400x400:fit', 'big' => '1280x720:fit,quality=100', ], '/output/dir' // optional );, (*5)

Kartinki will place 3 files to /output/dir:

1ceebb2cf4b0425a0ea1e1cb49810a07_square.jpg // 200x200 1ceebb2cf4b0425a0ea1e1cb49810a07_normal.jpg // 400x300 1ceebb2cf4b0425a0ea1e1cb49810a07_big.jpg // 960x720, (*6)


And $thumbnails will contain: ``` php <?php [ 'square' => '1ceebb2cf4b0425a0ea1e1cb49810a07_square.jpg', 'normal' => '1ceebb2cf4b0425a0ea1e1cb49810a07_normal.jpg', 'big' => '1ceebb2cf4b0425a0ea1e1cb49810a07_big.jpg' ]

The Versions

17/03 2015

dev-master

9999999-dev

Simple tool for creating previews of images.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Stanislav Gamayunov

26/01 2015

0.0.3

0.0.3.0

Simple tool for creating previews of images.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Stanislav Gamayunov

30/10 2014

0.0.2

0.0.2.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Stanislav Gamayunov

30/10 2014

0.0.1

0.0.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Stanislav Gamayunov