Files
myep-team/config/packages/liip_imagine.yaml
T

39 lines
1.3 KiB
YAML

liip_imagine:
driver: "imagick"
resolvers:
default:
web_path: ~
cache: format_extension
loaders:
default:
filesystem:
data_root: '%kernel.project_dir%/uploads/photo'
twig:
mode: lazy
filter_sets:
cache: ~
thumbnail:
format: jpeg
jpeg_quality: 75
filters:
# Phone photos carry their orientation in EXIF rather than in the pixels, so
# without this the table renders them sideways while every other filter set,
# which has always had it, shows them upright.
auto_rotate: ~
# outbound crops to the box but never scales up, so a photo narrower than
# 128px came out oblong and the rounded-full avatar with it.
thumbnail: { size: [ 128, 128 ], mode: outbound, allow_upscale: true }
profile:
format: jpeg
jpeg_quality: 75
filters:
auto_rotate: ~
thumbnail: { size: [ 640, 640 ], mode: outbound }
contact:
format: jpeg
jpeg_quality: 75
filters:
auto_rotate: ~
thumbnail: { size: [ 256, 256 ], mode: outbound }