Skip to content

Instantly share code, notes, and snippets.

@lahaxearnaud

lahaxearnaud/liip_imagine

Last active Nov 6, 2018
Embed
What would you like to do?
liip_imagine:
resolvers:
default:
web_path:
web_root: "%kernel.project_dir%/public"
# en écrivant ici on garde le cache entre chaque release
cache_prefix: "images/cache"
loaders:
default:
filesystem:
data_root: "%kernel.project_dir%/public/"
cache: default
data_loader: default
# valid drivers options include "gd" or "gmagick" or "imagick"
driver: "gd"
# define your filter sets under this option
filter_sets:
# an example thumbnail transformation definition
# https://symfony.com/doc/current/bundles/LiipImagineBundle/basic-usage.html#create-thumbnails
thumbnail:
jpeg_quality: 75
png_compression_level: 8
filters:
auto_rotate: ~
strip: ~
thumbnail:
size: [64, 64]
mode: outbound
allow_upscale: true
large:
jpeg_quality : 90
png_compression_level: 6
filters:
auto_rotate: ~
strip: ~
thumbnail:
size: [400, 400]
mode: outbound
allow_upscale: true
home_header_small:
jpeg_quality : 80
png_compression_level: 7
filters:
auto_rotate: ~
strip: ~
thumbnail:
size: [300, 300]
mode: outbound
allow_upscale: true
home_header_big:
jpeg_quality : 80
png_compression_level: 7
filters:
auto_rotate: ~
strip: ~
thumbnail:
size: [900, 300]
mode: outbound
allow_upscale: true
page_header:
jpeg_quality : 80
png_compression_level: 7
filters:
auto_rotate: ~
strip: ~
thumbnail:
size: [200, 200]
mode: outbound
allow_upscale: true
article_media:
jpeg_quality : 80
png_compression_level: 7
filters:
auto_rotate: ~
strip: ~
thumbnail:
size: [200, 220]
mode: outbound
allow_upscale: true
pub_media:
jpeg_quality : 80
png_compression_level: 7
filters:
auto_rotate: ~
strip: ~
thumbnail:
size: [250, 250]
mode: outbound
allow_upscale: true
avatar_media:
jpeg_quality : 80
png_compression_level: 7
filters:
auto_rotate: ~
strip: ~
thumbnail:
size: [200, 250]
mode: outbound
allow_upscale: true
medium_desktop:
jpeg_quality : 80
png_compression_level: 6
filters:
auto_rotate: ~
strip: ~
thumbnail:
size: [240, 180]
mode: outbound
allow_upscale: true
medium_tablet:
jpeg_quality : 85
png_compression_level: 6
filters:
auto_rotate: ~
strip: ~
thumbnail:
size: [270, 200]
mode: outbound
allow_upscale: true
medium_mobile:
jpeg_quality : 90
png_compression_level: 5
filters:
auto_rotate: ~
strip: ~
thumbnail:
size: [400, 400]
mode: outbound
allow_upscale: true
tiny:
jpeg_quality: 60
png_compression_level: 8
filters:
auto_rotate: ~
strip: ~
thumbnail:
size: [35, 35]
mode: outbound
allow_upscale: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment