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: docs/classic-ui/images.md
+80Lines changed: 80 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -247,3 +247,83 @@ Other options are:
247
247
248
248
The `ImageScaling` view explicitly checks the permissions of the current user.
249
249
To access image scales, which are normally not accessible to the current user, override the `validate_access` method in `plone.namedfile.scaling.ImageScale`.
250
+
251
+
252
+
## srcset configuration
253
+
254
+
In `/@@imaging-controlpanel` Plone allows you to define srcset's.
255
+
A srcset can help the Browser to serve the best fitting image for the current users situation.
256
+
Which image scale is best for the user can be decided on different metrics.
257
+
258
+
259
+
### viewport size
260
+
261
+
The first is metric would be the viewport size.
262
+
263
+
```json
264
+
{
265
+
"scale": "large",
266
+
"media": "(max-width:800px)"
267
+
},
268
+
{
269
+
"scale": "larger"
270
+
}
271
+
```
272
+
273
+
With this definition the Browser will use the large scale (800px) when the viewport size is max 800px.
274
+
When the viewport size is greater then 800px, the Browser will use the larger scale (1000px).
275
+
276
+
277
+
### Pixel density
278
+
279
+
Another metric is the pixel density of the users screen.
280
+
This metric defines how many DPI per pixel the Screen is using.
0 commit comments