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:
@@ -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(),
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user