Download the PHP package spayn/thumbnail_generator_yii2_wrapper without Composer
On this page you can find all versions of the php package spayn/thumbnail_generator_yii2_wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download spayn/thumbnail_generator_yii2_wrapper
More information about spayn/thumbnail_generator_yii2_wrapper
Files in spayn/thumbnail_generator_yii2_wrapper
Download spayn/thumbnail_generator_yii2_wrapper
More information about spayn/thumbnail_generator_yii2_wrapper
Files in spayn/thumbnail_generator_yii2_wrapper
Vendor spayn
Package thumbnail_generator_yii2_wrapper
Short Description Wrapper for spayn/thumbnail_generator
License
Package thumbnail_generator_yii2_wrapper
Short Description Wrapper for spayn/thumbnail_generator
License
Please rate this library. Is it a good library?
Informations about the package thumbnail_generator_yii2_wrapper
Thumbnail Generator Yii2 Wrapper
Usage:
// Configure
'thumbnail' => [
'class' => 'spayn\ImageHelpers\Yii2\ThumbnailGeneratorWrapper',
'save_path' => '@backend/web/thumbs',
'url' => '/backend/thumbs',
'thumbs' => [
'common\models\Post' => [
'picture_property' => 'image',
'resolutions' => [
'small' => '75x75',
'medium' => '730x410'
]
],
'common\models\User' => [
'picture_property' => 'image',
'resolutions' => [
'small' => '80x80'
]
]
]
]
// Generate
Yii::$app->thumbnail->generate($model, $path_to_imagefile);
// Get url
Yii::$app->thumbnail->getFileUrl($model, 'medium');
All versions of thumbnail_generator_yii2_wrapper with dependencies
PHP Build Version
Package Version
The package spayn/thumbnail_generator_yii2_wrapper contains the following files
Loading the files please wait ....