mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
DOCS Update docs for force_resample
This commit is contained in:
parent
d8ca223e15
commit
2a3abcec0d
@ -165,21 +165,22 @@ around 2000px on the longest edge.
|
|||||||
|
|
||||||
#### Forced resampling
|
#### Forced resampling
|
||||||
|
|
||||||
Since the 'master' images in your asset store may have a large file size, by
|
Since the 'master' images in your asset store may have a large file size, SilverStripe
|
||||||
default SilverStripe will always apply compression to your images to save
|
can apply compression to your images to save bandwidth - even if no other manipulation
|
||||||
bandwidth - even if no other manipulation (such as a crop or resize) is taking
|
(such as a crop or resize) is taking place. In many cases this can result in a smaller
|
||||||
place. If you expect the images in your asset store to already have
|
overall file size, which may be appropriate for streaming to web users.
|
||||||
compression applied and want to serve up the original when no resampling is
|
|
||||||
necessary, you can add this to your mysite/config/config.yml file:
|
|
||||||
|
|
||||||
|
Please note that turning this feature on can increase the server memory requirements,
|
||||||
|
and is off by default to conserve resources.
|
||||||
|
|
||||||
|
You can turn this on with the below config:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
# Configure resampling for File dataobject
|
---
|
||||||
|
Name: resamplefiles
|
||||||
|
---
|
||||||
SilverStripe\Assets\File:
|
SilverStripe\Assets\File:
|
||||||
force_resample: false
|
force_resample: false
|
||||||
# DBFile can be configured independently
|
|
||||||
SilverStripe\Assets\Storage\DBFile:
|
|
||||||
force_resample: false
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Resampled image quality
|
#### Resampled image quality
|
||||||
|
Loading…
Reference in New Issue
Block a user