Skip to content

Commit 3703468

Browse files
committed
Fix width/height parameter, has to be int
1 parent 5dd2832 commit 3703468

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
/bin
33
/include
44
/lib
5+
/lib64
56

67
# Generated files
78
pyvenv.cfg
89
/_build
910

1011
# symlinked from submodule
1112
docs/volto
12-
/lib64

docs/classic-ui/images.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ To get a specific image size:
9393
from plone import api
9494

9595
scale_util = api.content.get_view("images", context, request)
96-
tag = scale_util.tag("image", width="600", height="200")
96+
tag = scale_util.tag("image", width=600, height=200)
9797
```
9898

9999
The complete list of arguments with their default values is shown in the following example.
@@ -167,7 +167,7 @@ Instead of using the configured named scales, you can get an HTML tag with any s
167167
from plone import api
168168

169169
scale_util = api.content.get_view("images", context, request)
170-
tag = scale_util.scale("image", width="600", height="200")
170+
tag = scale_util.scale("image", width=600, height=200)
171171
```
172172

173173
(classic-ui-images-using-image_scale0-in-templates-label)=

0 commit comments

Comments
 (0)