1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add progressive JPG to default variable content types

This commit is contained in:
Maurice Kühlborn 2018-11-15 12:11:36 +01:00
parent f6a16106fa
commit 455a122ef0
3 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
* Add progressive JPG to default list of variable content types
*Maurice Kühlborn*
* Add `ActiveStorage.routes_prefix` for configuring generated routes.
*Chris Bisnett*

View file

@ -26,6 +26,7 @@ module ActiveStorage
image/gif
image/jpg
image/jpeg
image/pjpeg
image/vnd.adobe.photoshop
image/vnd.microsoft.icon
)

View file

@ -813,7 +813,7 @@ normal Rails server.
config.active_storage.paths[:ffprobe] = '/usr/local/bin/ffprobe'
```
* `config.active_storage.variable_content_types` accepts an array of strings indicating the content types that Active Storage can transform through ImageMagick. The default is `%w(image/png image/gif image/jpg image/jpeg image/vnd.adobe.photoshop image/vnd.microsoft.icon)`.
* `config.active_storage.variable_content_types` accepts an array of strings indicating the content types that Active Storage can transform through ImageMagick. The default is `%w(image/png image/gif image/jpg image/jpeg image/pjpeg image/vnd.adobe.photoshop image/vnd.microsoft.icon)`.
* `config.active_storage.content_types_to_serve_as_binary` accepts an array of strings indicating the content types that Active Storage will always serve as an attachment, rather than inline. The default is `%w(text/html
text/javascript image/svg+xml application/postscript application/x-shockwave-flash text/xml application/xml application/xhtml+xml)`.