Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
timnarr committed Feb 8, 2024
1 parent 6a51608 commit 0ff7e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ For each HTML element of the picture element you can add attributes, like CSS cl
| `ratio` | `'intrinsic'` | String | Set the desired aspect ratio here for not art-directed-images which is used for the thumbs in your `<img>` src and srcset and for non art directed sources or let the editor choose from a set of predefined ratios from the panel. Can be omitted, default is `intrinsic`, which means the ratio of the source-image is used. |
| `sourcesAttributes` | `['shared' => [], 'eager' => [], 'lazy' => []]` | Array | HTML attributes added to non-art-directed `<source>` elements. Set `shared` attributes regardless of the loading mode. Extend `shared` attributes for a specific loading mode by setting `eager` and `lazy`. |
| `sourcesArtDirected` | `[]` | Array | Order matters here! Browsers will use the first matching `<source>` element they will find. Order your length-based media queries from large to small. You can change the ratio of the initial image if a media condition matches or use a complete different image and load it if a media condition matches. Again you can add a `attributes` array to each art-directed source with `shared`, `eager` and `lazy` attributes to change the HTML attributes for the different loading modes |
| `formatSizeHandling` | `false` | Boolean | In some cases `avif` files can be larger than `webp`. If this option is set to true, it enables a dynamic size comparison between the specified image formats. ⚠️ Again: The `formats` order in `config.php` matters here! [Read more about it here](#dynamic-format-size-handling). |
| `formatSizeHandling` | `false` | Boolean | In some cases `avif` files can be larger than `webp`. If this option is set to true, it enables a dynamic size comparison between the specified image formats. ⚠️ Again: The `formats` order in `config.php` matters here! 🚧 This feature is currently pretty basic - [Read more about it here](#dynamic-format-size-handling). |


```php
Expand Down

0 comments on commit 0ff7e08

Please sign in to comment.