You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,7 @@ Props:
88
88
- `sizes`: sizes attribute of the default image (string ot array)
89
89
- `loading`: (optional, default "lazy") loading attribute for the img tag
90
90
- `format`: (optional) the image-format like `webp` or `png`, will be applied to the `imageSource`
91
+
- `quality`: (optional) the image quality from 0 to 100, will be applied to the `imageSource`
91
92
- `width`: (optional) the base width, will be applied to the `imageSource`
92
93
- `height`: (optional) the base height, will be applied to the `imageSource`
93
94
- `alt`: alt-attribute for the img tag (default "")
@@ -136,11 +137,13 @@ Props:
136
137
- `media`: (optional) the media attribute for this source
137
138
- `type`: (optional) the type attribute for this source
138
139
- `format`: (optional) the image-format for the source like `webp` or `png`, is applied to `imageSource` and `type`
140
+
- `quality`: (optional) the image quality from 0 to 100, will be applied to the `imageSource`
139
141
- `width`: (optional) the base width, will be applied to the `imageSource`
140
142
- `height`: (optional) the base height, will be applied to the `imageSource`
141
143
- `srcset`: media descriptors like '1.5x' or '600w' of the default image (string ot array)
142
144
- `sizes`: sizes attribute of the default image (string ot array)
143
145
- `formats`: (optional) image formats that will be rendered as sources of separate type (string or array)
146
+
- `quality`: (optional) the image quality from 0 to 100, will be applied to the `imageSource`
144
147
- `width`: (optional) the base width, will be applied to the `imageSource`
145
148
- `height`: (optional) the base height, will be applied to the `imageSource`
146
149
- `loading`: (optional, default "lazy") loading attribute for the img tag
@@ -212,6 +215,7 @@ Props:
212
215
- `srcset`: media descriptors like '1.5x' or '600w' of the default image (string ot array, inherited from picture)
213
216
- `sizes`: (optional) sizes attribute (string or array, inherited from picture)
214
217
- `format`: (optional) the image-format like `webp` or `png`, will be applied to `imageSource` and `type`
218
+
- `quality`: (optional) the image quality from 0 to 100, will be applied to the `imageSource`
215
219
- `width`: (optional) the base width, will be applied to the `imageSource`
216
220
- `height`: (optional) the base height, will be applied to the `imageSource`
217
221
- `type`: (optional) the type attribute for the source like `image/png` or `image/webp`, the actual format is enforced via `imageSource.withFormat()`
@@ -307,6 +311,7 @@ Arguments:
307
311
- `thumbnailPreset`: `width` and `height` are supported as explained above
308
312
- `variantPreset`: as explained above
309
313
- `format`: Set the image output format, like webp (default null)
314
+
- `quality`: Set the image quality from 0 to 100 (default null)
310
315
- `alt`: The alt attribute if not specified otherwise (default null)
311
316
- `title`: The title attribute if not specified otherwise (default null)
312
317
@@ -355,6 +360,7 @@ Methods of ImageSource-Helpers that are accessible via Eel:
355
360
- `withThumbnailPreset( string )`: Set width and/or height via named thumbnail preset from Settings `Neos.Media.thumbnailPresets`
356
361
- `withVariantPreset( string, string )`: Select image variant via the named variant preset (parameters are "preset identifier" key and "preset variant name" key from Settings `Neos.Media.variantPresets`)
357
362
- `withFormat( string )`: Set the image format to generate like `webp`, `png` or `jpeg`
363
+
- `withQuality( integer )`: Set the image quality from 0 to 100
358
364
- `withAlt( ?string )`: Set the alt atttribute for the image tag
359
365
- `withTitle( ?string )`: Set the title atttribute for the image tag
360
366
@@ -373,6 +379,7 @@ deprecated methods:
373
379
- `setHeight( integer $height, bool $preserveAspect = false )`: Set the intended height
374
380
- `setDimensions( integer, interger)`: Set the intended width and height
375
381
- `setFormat( string )`: Set the image format to generate like `webp`, `png` or `jpeg`
382
+
- `setQuality( integer )`: Set the image quality from 0 to 100
376
383
377
384
Note: The Eel-helpers cannot be created directly. They have to be created
378
385
by using the `Sitegeist.Kaleidoscope:AssetImageSource` or
0 commit comments