1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-10 23:24:04 +02:00

feat(images): add presets functionality for Images service

This commit is contained in:
Awilum
2021-09-01 19:45:45 +03:00
parent a2ca98fd99
commit 1fd93a4839
2 changed files with 7 additions and 0 deletions

View File

@@ -395,6 +395,10 @@ container()->set('images', static function () {
'api' => $api,
]);
// Set presets
$server->setPresets(registry()->get('flextype.settings.images.presets'));
// Set Glide response factory
$server->setResponseFactory(
new PsrResponseFactory(
new Response(),

View File

@@ -665,6 +665,8 @@ upload:
# - cache.enabled: Set to true to enable images caching.
#
# - cache.directory: Images cache directory.
#
# - presets: Group of presets for images processing.
images:
driver: gd
directory: '/uploads'
@@ -672,6 +674,7 @@ images:
directory: '/watermarks'
cache:
directory: '/images'
presets: []
# Session