the bola v2 website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

assets.php 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?php
  2. return [
  3. 'image_manipulation' => [
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Route Prefix
  7. |--------------------------------------------------------------------------
  8. |
  9. | The route prefix for serving HTTP based manipulated images through Glide.
  10. | If using the cached option, this should be the URL of the cached path.
  11. |
  12. */
  13. 'route' => 'img',
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Require Glide security token
  17. |--------------------------------------------------------------------------
  18. |
  19. | With this option enabled, you are protecting your website from mass image
  20. | resize attacks. You will need to generate tokens using the Glide tag
  21. | but may want to disable this while in development to tinker.
  22. |
  23. */
  24. 'secure' => true,
  25. /*
  26. |--------------------------------------------------------------------------
  27. | Image Manipulation Driver
  28. |--------------------------------------------------------------------------
  29. |
  30. | The driver that will be used under the hood for image manipulation.
  31. | Supported: "gd" or "imagick" (if installed on your server)
  32. |
  33. */
  34. 'driver' => 'gd',
  35. /*
  36. |--------------------------------------------------------------------------
  37. | Save Cached Images
  38. |--------------------------------------------------------------------------
  39. |
  40. | Enabling this will make Glide save publicly accessible images. It will
  41. | increase performance at the cost of the dynamic nature of HTTP based
  42. | image manipulation. You will need to invalidate images manually.
  43. |
  44. */
  45. 'cache' => false,
  46. 'cache_path' => public_path('img'),
  47. /*
  48. |--------------------------------------------------------------------------
  49. | Image Manipulation Presets
  50. |--------------------------------------------------------------------------
  51. |
  52. | Rather than specifying your manipulation params in your templates with
  53. | the glide tag, you may define them here and reference their handles.
  54. | They will also be automatically generated when you upload assets.
  55. |
  56. */
  57. 'presets' => [
  58. // 'small' => ['w' => 200, 'h' => 200, 'q' => 75, 'fit' => 'crop'],
  59. ],
  60. ],
  61. /*
  62. |--------------------------------------------------------------------------
  63. | Auto-Crop Assets
  64. |--------------------------------------------------------------------------
  65. |
  66. | Enabling this will make Glide automatically crop assets at their focal
  67. | point (at the center if no focal point is defined). Otherwise,
  68. | you will need to manually add any crop related parameters.
  69. |
  70. */
  71. 'auto_crop' => true,
  72. /*
  73. |--------------------------------------------------------------------------
  74. | Control Panel Thumbnail Restrictions
  75. |--------------------------------------------------------------------------
  76. |
  77. | Thumbnails will not be generated for any assets any larger (in either
  78. | axis) than the values listed below. This helps prevent memory usage
  79. | issues out of the box. You may increase or decrease as necessary.
  80. |
  81. */
  82. 'thumbnails' => [
  83. 'max_width' => 10000,
  84. 'max_height' => 10000,
  85. ],
  86. /*
  87. |--------------------------------------------------------------------------
  88. | File Previews with Google Docs
  89. |--------------------------------------------------------------------------
  90. |
  91. | Filetypes that cannot be rendered with HTML5 can opt into the Google Docs
  92. | Viewer. Google will get temporary access to these files so keep that in
  93. | mind for any privacy implications: https://policies.google.com/privacy
  94. |
  95. */
  96. 'google_docs_viewer' => false,
  97. /*
  98. |--------------------------------------------------------------------------
  99. | Cache Metadata
  100. |--------------------------------------------------------------------------
  101. |
  102. | Asset metadata (filesize, dimensions, custom data, etc) will get cached
  103. | to optimize performance, so that it will not need to be constantly
  104. | re-evaluated from disk. You may disable this option if you are
  105. | planning to continually modify the same asset repeatedly.
  106. |
  107. */
  108. 'cache_meta' => true,
  109. /*
  110. |--------------------------------------------------------------------------
  111. | Focal Point Editor
  112. |--------------------------------------------------------------------------
  113. |
  114. | When editing images in the Control Panel, there is an option to choose
  115. | a focal point. When working with third-party image providers such as
  116. | Cloudinary it can be useful to disable Statamic's built-in editor.
  117. |
  118. */
  119. 'focal_point_editor' => true,
  120. ];