Created
July 26, 2020 09:26
-
-
Save 5quinque/4571f07513d75ea2a974ed204d536006 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See dos how to configure the bundle: https://symfony.com/doc/current/bundles/LiipImagineBundle/basic-usage.html | |
liip_imagine: | |
enqueue: true | |
cache: s3_cache | |
# valid drivers options include "gd" or "gmagick" or "imagick" | |
driver: "imagick" | |
resolvers: | |
s3_cache: | |
flysystem: | |
filesystem_service: oneup_flysystem.s3_filesystem | |
root_url: '%env(S3_ROOTURL)%' | |
cache_prefix: "/" | |
visibility: public | |
default: | |
web_path: | |
cache_prefix: "/" | |
filter_sets: | |
# Strip EXIF information | |
jpeg: | |
cache: s3_cache | |
quality: 75 | |
filters: | |
strip: ~ | |
img: | |
cache: s3_cache | |
animated: true | |
# the name of the "filter set" | |
thumb: | |
cache: s3_cache | |
quality: 75 | |
png_compression_level: 8 | |
animated: true | |
# list of transformations to apply (the "filters") | |
filters: | |
# create a thumbnail: set size to 120x120 and use the "outbound" mode | |
# to crop the image when the size ratio of the input differs | |
thumbnail: { size: [120, 120], mode: outbound } | |
# auto rotate the image using EXIF metadata | |
auto_rotate: ~ | |
# https://symfony.com/doc/2.0/bundles/LiipImagineBundle/data-loader/flysystem.html | |
loaders: | |
flysystem_loader: | |
flysystem: | |
filesystem_service: oneup_flysystem.s3_filesystem | |
data_loader: flysystem_loader |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment