ldc-boutique-cnc/config/image-resizer.php
2023-02-17 17:31:24 +01:00

116 lines
3 KiB
PHP

<?php
return [
/**
* The php image driver to use
* this can be 'imagick' or 'gd'
*/
'driver' => 'imagick',
/**
* The cache driver to use as defined
* in config/cache of your app
*/
'cache' => 'file',
/**
* The path where to store image in cache
*/
'cachePath' => 'cache/images',
/**
* Image cache life time
* This is given in minutes
* Here the cache for images is
* one hour
*/
'lifeTime' => 535680,
// 1 ans
/**
* Format can specifiy to which format save the image
* JPEG PNG GIF TIF BMP ICO PSD WebP
* GD ✔️ ✔️ ✔️ - - - - ✔️ *
* Imagick ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ *
* For WebP support GD driver must be used with PHP 5 >= 5.5.0 or PHP 7
* in order to use imagewebp(). If Imagick is used, it must be compiled
* with libwebp for WebP support.
* example :
* 'small' => [
* 'height' => 500,
* 'width' => 250,
* 'inCanvas' => true,
* ],
* 'smallWebp' => [
* 'height' => 500,
* 'width' => 250,
* 'inCanvas' => true,
* 'format' => 'webp'
* ]
*/
'templates' => [
'boIncoPicture' => [
'height' => 124,
'width' => 128,
'inCanvas' => true,
'format' => 'png',
'resize' => true,
'keepRatio' => true,
'trim' => true
],
'boStickers' => [
'height' => 65,
'width' => 65,
'format' => 'png',
'inCanvas' => true,
'resize' => true,
'keepRatio' => true,
'trim' => true
],
'foMenuLogo' => [
'height' => 150,
'width' => 150,
'format' => 'png',
'inCanvas' => true,
'resize' => true,
'keepRatio' => true,
'trim' => true
],
'foProduct' => [
'height' => 235,
'width' => 235,
'format' => 'png',
'inCanvas' => true,
'resize' => true,
'keepRatio' => true,
'trim' => true
],
'foRange' => [
'height' => 355,
'width' => 476,
'format' => 'png',
'inCanvas' => true,
'resize' => true,
'keepRatio' => true,
'trim' => true
],
'foSubscribeLogo' => [
'height' => 210,
'width' => 210,
'format' => 'png',
'inCanvas' => true,
'resize' => true,
'keepRatio' => true,
'trim' => true
],
'foOrderRecap' => [
'height' => 100,
'width' => 100,
'format' => 'png',
'inCanvas' => true,
'resize' => true,
'keepRatio' => true,
'trim' => true
],
]
];