2021-08-19 10:06:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
2023-11-20 17:22:24 +01:00
|
|
|
return array_replace_recursive(
|
|
|
|
|
[
|
2023-12-14 10:11:53 +01:00
|
|
|
// * GGW version
|
|
|
|
|
'version' => null,
|
|
|
|
|
// * Theme name
|
2023-12-01 17:04:32 +01:00
|
|
|
'name' => 'base',
|
2023-12-14 10:11:53 +01:00
|
|
|
// * Picture BO validation sizes
|
2023-11-20 17:22:24 +01:00
|
|
|
'models' => [
|
2023-12-06 11:19:39 +01:00
|
|
|
'prizes' => [
|
|
|
|
|
'picture_max_width' => 560,
|
|
|
|
|
'picture_max_height' => 700,
|
|
|
|
|
],
|
2023-12-01 16:13:56 +01:00
|
|
|
'products' => [
|
|
|
|
|
'picture_max_width' => 550,
|
|
|
|
|
'picture_max_height' => 550,
|
|
|
|
|
],
|
|
|
|
|
'ranges' => [
|
|
|
|
|
'picture_max_width' => 476,
|
|
|
|
|
'picture_max_height' => 355,
|
|
|
|
|
],
|
2023-11-20 17:22:24 +01:00
|
|
|
],
|
2023-12-14 10:11:53 +01:00
|
|
|
// * Image resizer config
|
2023-12-06 11:19:39 +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.
|
|
|
|
|
* resize => will resize the image (boolean)
|
|
|
|
|
* fit => Combine cropping and resizing to format image in a smart way (boolean)
|
|
|
|
|
* keepRatio => will keep image ratio wile resizing (boolean)
|
|
|
|
|
* trim => boolean to trim the image using border color
|
|
|
|
|
* inCanvas => to make sure image boundarie is respected
|
|
|
|
|
* format => select tha wantd ouput form, yan can just convert images if you want
|
|
|
|
|
* example :
|
|
|
|
|
* 'small' => [
|
|
|
|
|
* 'height' => 500,
|
|
|
|
|
* 'width' => 250,
|
|
|
|
|
* 'inCanvas' => true,
|
|
|
|
|
* 'trim' => ['transparent', null, 10]
|
|
|
|
|
* ],
|
|
|
|
|
* 'smallWebp' => [
|
|
|
|
|
* 'height' => 500,
|
|
|
|
|
* 'width' => 250,
|
|
|
|
|
* 'inCanvas' => true,
|
|
|
|
|
* 'format' => 'webp'
|
|
|
|
|
* ],
|
|
|
|
|
* 'justconvertImage' => [
|
|
|
|
|
* 'format' => 'webp'
|
|
|
|
|
* ]
|
|
|
|
|
*/
|
|
|
|
|
'resizes' => []
|
2023-11-20 17:22:24 +01:00
|
|
|
],
|
2023-12-18 18:38:25 +01:00
|
|
|
file_exists(resource_path('theme/mounted/theme.config.php')) ?
|
|
|
|
|
require(resource_path('theme/mounted/theme.config.php')) : [],
|
2023-11-20 17:22:24 +01:00
|
|
|
);
|