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
## Scaling `direction` to be deprecated in favor of `mode`
220
+
221
+
```{attention}
222
+
In the upcoming release of Plone 6.0, in `plone.scale` the `direction` argument will be deprecated in favor of `mode`.
223
+
224
+
`plone.scale` will continue to do scaling, but the values should be converted in your code as follows:
225
+
>>>>>>> 58481e400f28d62b1ad48bdf33572b2710c6f81c
211
226
212
227
Other options are:
213
228
229
+
<<<<<<< HEAD
214
230
* scale-crop-to-fit
215
231
* down
216
232
* scale-crop-to-fill
217
233
* up
218
234
* keep
219
235
* thumbnail
236
+
=======
237
+
Until the final release of Plone 6.0, continue to use `plone.namedfile` with the `direction` argument and its values.
238
+
```
239
+
>>>>>>> 58481e400f28d62b1ad48bdf33572b2710c6f81c
220
240
221
241
222
242
(classic-ui-images-permissions-label)=
223
243
224
244
## Permissions
225
245
226
246
The `ImageScaling` view explicitly checks the permissions of the current user.
247
+
<<<<<<< HEAD
227
248
To access image scales which are normally not accessible to the current user, override the `validate_access` method in `plone.namedfile.scaling.ImageScale`.
249
+
=======
250
+
To access image scales, which are normally not accessible to the current user, override the `validate_access` method in `plone.namedfile.scaling.ImageScale`.
251
+
In `Products.EasyNewsletter` you can find an example of that.
0 commit comments