sonata_media.yaml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. sonata_media:
  2. class:
  3. media: Chamilo\MediaBundle\Entity\Media
  4. gallery: Chamilo\MediaBundle\Entity\Gallery
  5. gallery_has_media: Chamilo\MediaBundle\Entity\GalleryHasMedia
  6. category: Chamilo\ClassificationBundle\Entity\Category
  7. db_driver: doctrine_orm
  8. default_context: default
  9. contexts:
  10. default: # the default context is mandatory
  11. download:
  12. strategy: sonata.media.security.superadmin_strategy
  13. mode: http # X-Sendfile | http
  14. providers:
  15. - sonata.media.provider.dailymotion
  16. - sonata.media.provider.youtube
  17. - sonata.media.provider.image
  18. - sonata.media.provider.file
  19. - sonata.media.provider.vimeo
  20. formats:
  21. small: {width: 100, quality: 100}
  22. medium: {width: 300, quality: 100}
  23. big: {width: 970, quality: 100}
  24. # sonata_collection:
  25. # providers:
  26. # - sonata.media.provider.image
  27. # formats:
  28. # preview: {width: 100, quality: 100}
  29. # wide: {width: 820, quality: 100}
  30. # sonata_category:
  31. # providers:
  32. # - sonata.media.provider.image
  33. # formats:
  34. # preview: {width: 100, quality: 100}
  35. # wide: {width: 820, quality: 100}
  36. # user:
  37. # providers:
  38. # - sonata.media.provider.image
  39. # formats:
  40. # small: {width: 100, quality: 100}
  41. # big: {width: 970, quality: 100}
  42. cdn:
  43. # define the public base url for the uploaded media
  44. server:
  45. path: '%sonata_media.cdn.host%'
  46. filesystem:
  47. # define where the uploaded file will be stored
  48. local:
  49. directory: '%kernel.root_dir%/../var/upload/resource'
  50. create: true
  51. providers:
  52. file:
  53. # the resizer must be set to false, otherwhise this can delete icon files from the fs
  54. resizer: false
  55. image:
  56. # resizer: sonata.media.resizer.square
  57. # thumbnail: sonata.media.thumbnail.format # default value
  58. # thumbnail: sonata.media.thumbnail.consumer.format # can be used to dispatch the resize action to async task
  59. thumbnail: sonata.media.thumbnail.liip_imagine # use the LiipImagineBundle to resize the image
  60. vimeo:
  61. thumbnail: sonata.media.thumbnail.format # default value
  62. # thumbnail: sonata.media.thumbnail.consumer.format # can be used to dispatch the resize action to async task
  63. # thumbnail: sonata.media.thumbnail.liip_imagine # use the LiipImagineBundle to resize the image
  64. youtube:
  65. thumbnail: sonata.media.thumbnail.format # default value
  66. # thumbnail: sonata.media.thumbnail.consumer.format # can be used to dispatch the resize action to async task
  67. # thumbnail: sonata.media.thumbnail.liip_imagine # use the LiipImagineBundle to resize the image
  68. dailymotion:
  69. thumbnail: sonata.media.thumbnail.format # default value
  70. # thumbnail: sonata.media.thumbnail.consumer.format # can be used to dispatch the resize action to async task
  71. # thumbnail: sonata.media.thumbnail.liip_imagine # use the LiipImagineBundle to resize the image
  72. # pixlr:
  73. # enabled: true
  74. # referrer: App
  75. resizer:
  76. simple:
  77. # mode: outbound
  78. mode: inset