2017 © Pedro Peláez
 

library thumbnails-helper

Simple and intelligent system for creating and work with thumbnails

image

kappa/thumbnails-helper

Simple and intelligent system for creating and work with thumbnails

  • Saturday, January 3, 2015
  • by Budry
  • Repository
  • 1 Watchers
  • 2 Stars
  • 984 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Kappa\ThumbnailsHelper

Simple and intelligent system for creating and work with thumbnails, (*1)

Requirements:

Installation

The best way to install Kappa\ThumbnailsHelper is using Composer:, (*2)

$ composer require kappa/thumbnails-helper:@dev

Usages

You must register extension:, (*3)

extensions:
    thumb: Kappa\ThumbnailsHelper\DI\ThumbnailsHelperExtension

Into presenter or control where you can use this helper add filter (helper), (*4)

$template->addFilter('thumb', array($this->thumbnailsHelper, 'process')) // for Nette 2.2
$template->registerHelper('thumb', array($this->thumbnailsHelper, 'process')) // for Nette 2.1

Method in callback must be process()!, (*5)

and you can use helper in templates, (*6)

<img src="{$photo|thumb:'100x300':'fit'}">

Size can be in next formats: * 100x - Width will be 100px and height will be automatically calculated * x100 - Width will be automatically calculated and height will be 100px * 100x100 - Size will be 100pxx100px, (*7)

Third argument is resize type, for more info see documentation in czech only, (*8)

Helper can be configure in config: * thumbDir: - set path to thumb dir with %wwwDir% (example %wwwDir%/thumbs) * sizeUp - you can set to true or false when you want small image resize to big image * controlFrequency - you can set count of days for invalidate storage (remove all thumbnails and create a new only from usages images). If you set this option on false or remove option automatically control has been disabled, (*9)

The Versions

03/01 2015

dev-master

9999999-dev https://github.com/Kappa-org/Thumbnails-Helper

Simple and intelligent system for creating and work with thumbnails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework helpers thumbnails nette kappa

03/01 2015

v1.0.1

1.0.1.0 https://github.com/Kappa-org/Thumbnails-Helper

Simple and intelligent system for creating and work with thumbnails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework helpers thumbnails nette kappa

26/05 2014

dev-nette-2.1

dev-nette-2.1 https://github.com/Kappa-org/Thumbnails-Helper

Simple and intelligent system for creating and work with thumbnails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework helpers thumbnails nette kappa

26/05 2014

v1.0.0

1.0.0.0 https://github.com/Kappa-org/Thumbnails-Helper

Simple and intelligent system for creating and work with thumbnails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework helpers thumbnails nette kappa