-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,10 @@ Make sure your `/thumbs` directory is present and writable and ImageMagick is av | |
|
||
Although the plugin works without configuration, these options are available and can be added to your `/site/config/config.php`: | ||
|
||
It is also possible to link the image to one of the generated sizes using the keyword set via the `responsiveimages.sources` config. The following example will link to the smallest possible image size: | ||
|
||
`(image:[email protected] link:small width:1244)` | ||
|
||
### Sizes | ||
|
||
To control the sizes attribute you can use [media queries](https://ericportis.com/posts/2014/srcset-sizes/). | ||
|
@@ -55,7 +59,7 @@ c::set('responsiveimages.sources', array( | |
)); | ||
``` | ||
|
||
1. The key names are optional and have no technical implications. | ||
1. The key names may be used to link the image (see *Usage* section). | ||
2. Each array item takes the same arguments as Kirbys [thumb()](http://getkirby.com/docs/cheatsheet/helpers/thumb) function (`quality`, `blur`, `upscale` etc..). | ||
|
||
## Support | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters