2021-03-24 23:32:00 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
/**
|
|
|
|
|
* The php image driver to use
|
|
|
|
|
* this can be 'imagick' or 'gd'
|
|
|
|
|
*/
|
2022-02-10 16:14:58 +01:00
|
|
|
'driver' => 'gd',
|
|
|
|
|
// à mettre en imagick quand webp sera dispo sur le server avec imagick
|
2021-03-24 23:32:00 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
|
|
*/
|
2022-02-10 16:14:58 +01:00
|
|
|
'lifeTime' => 535680,
|
|
|
|
|
// 1 ans
|
2021-03-24 23:32:00 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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' => [
|
|
|
|
|
'landingWebp' => [
|
|
|
|
|
'height' => 217,
|
|
|
|
|
'width' => 168,
|
|
|
|
|
'inCanvas' => true,
|
|
|
|
|
'format' => 'webp'
|
2021-03-25 09:44:57 +01:00
|
|
|
],
|
|
|
|
|
'productsPngWidget' => [
|
|
|
|
|
'height' => 324,
|
|
|
|
|
'width' => 328,
|
|
|
|
|
'inCanvas' => true,
|
|
|
|
|
'format' => 'png',
|
2021-03-31 15:15:33 +02:00
|
|
|
'resize' => true,
|
|
|
|
|
'keepRatio' => true,
|
2022-03-01 12:03:14 +01:00
|
|
|
'trim' => true
|
2021-03-31 17:56:23 +02:00
|
|
|
],
|
|
|
|
|
'joinusEncartJpg' => [
|
|
|
|
|
'height' => 237,
|
|
|
|
|
'width' => 420,
|
|
|
|
|
'format' => 'jpg',
|
|
|
|
|
'resize' => true,
|
|
|
|
|
'keepRatio' => true
|
|
|
|
|
],
|
|
|
|
|
'joinusEncartWebp' => [
|
|
|
|
|
'height' => 237,
|
|
|
|
|
'width' => 420,
|
|
|
|
|
'format' => 'webp',
|
|
|
|
|
'resize' => true,
|
|
|
|
|
'keepRatio' => true
|
2021-04-15 08:15:06 +02:00
|
|
|
],
|
|
|
|
|
'breederPng' => [
|
|
|
|
|
'height' => 271,
|
|
|
|
|
'width' => 225,
|
|
|
|
|
'inCanvas' => true,
|
|
|
|
|
'format' => 'png',
|
|
|
|
|
'trim' => true
|
2021-09-16 19:31:57 +02:00
|
|
|
],
|
|
|
|
|
'actuFront' => [
|
|
|
|
|
'height' => 244,
|
|
|
|
|
'width' => 366,
|
|
|
|
|
'format' => 'png',
|
|
|
|
|
'resize' => true,
|
|
|
|
|
'inCanvas' => true,
|
|
|
|
|
'keepRatio' => true
|
|
|
|
|
],
|
|
|
|
|
'actuFrontWebp' => [
|
|
|
|
|
'height' => 244,
|
|
|
|
|
'width' => 366,
|
|
|
|
|
'format' => 'webp',
|
|
|
|
|
'resize' => true,
|
|
|
|
|
'inCanvas' => true,
|
|
|
|
|
'keepRatio' => true
|
2021-09-17 22:26:43 +02:00
|
|
|
],
|
|
|
|
|
'actuWebp' => [
|
|
|
|
|
'format' => 'webp'
|
2021-09-23 10:20:35 +02:00
|
|
|
],
|
|
|
|
|
'productRSMWEBP' => [
|
|
|
|
|
'format' => 'webp'
|
|
|
|
|
],
|
2021-09-24 00:18:02 +02:00
|
|
|
'productFilterWEBP' => [
|
|
|
|
|
'height' => 166,
|
|
|
|
|
'width' => 166,
|
|
|
|
|
'format' => 'webp',
|
|
|
|
|
'resize' => true,
|
|
|
|
|
'inCanvas' => true,
|
|
|
|
|
'keepRatio' => true
|
|
|
|
|
],
|
|
|
|
|
'productFilterPNG' => [
|
|
|
|
|
'height' => 166,
|
|
|
|
|
'width' => 166,
|
|
|
|
|
'format' => 'png',
|
|
|
|
|
'resize' => true,
|
|
|
|
|
'inCanvas' => true,
|
|
|
|
|
'keepRatio' => true
|
|
|
|
|
],
|
2021-10-09 11:24:41 +02:00
|
|
|
'breedingWebp' => [
|
|
|
|
|
'format' => 'webp'
|
|
|
|
|
],
|
2022-03-29 10:51:45 +02:00
|
|
|
'recipeFilterPNG' => [
|
|
|
|
|
'height' => 180,
|
|
|
|
|
'width' => 180,
|
|
|
|
|
'format' => 'png',
|
|
|
|
|
'resize' => true,
|
|
|
|
|
'inCanvas' => true,
|
|
|
|
|
'keepRatio' => true
|
|
|
|
|
],
|
2021-03-24 23:32:00 +01:00
|
|
|
]
|
|
|
|
|
];
|