Hy,
I tried to implement your solution but it does'nt work. Can you help me ? Thank's !
I have this error and i don't understand why ...
Invalid type for path "sonata_media.contexts.default.providers.image". Expected scalar, but got array.
My config file :
sonata_media:
default_context: default
db_driver: doctrine_orm
contexts:
default:
providers:
image:
resizer: sonata.media.resizer.simple
allowed_mime_types:
- image/gif
- image/jpeg
- image/png
- image/pjpeg
allowed_extensions:
- gif
- png
- jpeg
- jpg
formats:
small: { width: 100 , quality: 70}
big: { width: 500 , quality: 70}