worstinme / yii2-thumbnailer

auto thumbnails creator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yii2-uikit

UiKit extensions for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist worstinme/yii2-thumbnailer

write to /config/web.php and create folder /thumbnails/

'controllerMap' => [
	'images'=>[
	    'class'=>'worstinme\thumbnailer\ImagesController',
	],
	...
],

urlRules for /thumbnails/ folder:

['pattern'=>'thumbnails/<width:\d+>-<height:\d+>/<image:[\w\-\_\.\/]+>',
        'route'=>'images/thumbnails','suffix'=>''],

About

auto thumbnails creator


Languages

Language:PHP 100.0%