未验证 提交 437d2091 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #34455 from minimalweb/progressive_jpeg_inclusion_as_variable_content_type

Add progressive JPG MIME-type to default variable content types
* Add progressive JPG to default list of variable content types
*Maurice Kühlborn*
* Add `ActiveStorage.routes_prefix` for configuring generated routes.
*Chris Bisnett*
......
......@@ -26,6 +26,7 @@ class Engine < Rails::Engine # :nodoc:
image/gif
image/jpg
image/jpeg
image/pjpeg
image/vnd.adobe.photoshop
image/vnd.microsoft.icon
)
......
......@@ -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)`.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册