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
+50Lines changed: 50 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -460,3 +460,53 @@ This will result in a `srcset` as in the following example for a medium image:
460
460
Please note that this example has the `resolve_uid_and_caption` filter disabled to see the scale names better.
461
461
The real `src` URLs look more like `http://localhost:8080/Plone50/dsc04791.jpg/@@images/778f9c06-36b0-485d-ab80-12c623dc4bc3.jpeg`.
462
462
```
463
+
464
+
## Image scales from catalog brain
465
+
466
+
For all `NamedBlobImage` fields, we can get existing scale information directly from the catalog brain.
467
+
468
+
Given a content type with a `NamedBlobField` named `picture`, we can get the following information by calling the `image_scales` attribute on the catalog brain.
0 commit comments