Skip to content

Commit

Permalink
Merge pull request silverstripe#2944 from howardgrigg/Docs-patch
Browse files Browse the repository at this point in the history
DOCS Added info about adjusting Image quality using new config
  • Loading branch information
ajshort committed Mar 12, 2014
2 parents 60bcce9 + 8ee6359 commit 366ac6b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/en/reference/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ For output of an image tag with the image automatically resized to 80px width, y
For usage on a website form, see `[api:FileField]`.
If you want to upload images within the CMS, see `[api:UploadField]`.

### Image Quality

To adjust the quality of the generated images when they are resized add the following to your mysite/config/config.yml file:

:::yml
GDBackend:
default_quality: 90

The default value is 75.

### Clearing Thumbnail Cache

Images are (like all other Files) synchronized with the SilverStripe database.
Expand Down

0 comments on commit 366ac6b

Please sign in to comment.