Skip to content

Commit 1539e56

Browse files
committed
TASK: Use new media image helper to generate thumbnail
1 parent 43c502d commit 1539e56

File tree

1 file changed

+4
-2
lines changed
  • DistributionPackages/Neos.NeosIo/Resources/Private/Fusion/Overrides

1 file changed

+4
-2
lines changed

DistributionPackages/Neos.NeosIo/Resources/Private/Fusion/Overrides/Image.fusion

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ prototype(Neos.NodeTypes:Image) < prototype(Neos.Neos:ContentComponent) {
1919
height = null
2020
maximumHeight = null
2121
maximumHeight.@process.override = ${q(node).property('customHeight') || value}
22+
maximumHeight.@process.toInt = ${Type.isString(value) ? String.toInteger(value) : value}
2223

2324
width = null
2425
// The maximum page width 1096 * 2
2526
maximumWidth = 2192
26-
maximumWidth.@process.override = ${q(node).property('customWidth') || value}
27+
maximumWidth.@process.override = ${String.toInteger(q(node).property('customWidth') || value)}
28+
maximumWidth.@process.toInt = ${Type.isString(value) ? String.toInteger(value) : value}
2729

2830
allowCropping = false
2931
allowUpScaling = false
@@ -58,7 +60,7 @@ prototype(Neos.NodeTypes:Image) < prototype(Neos.Neos:ContentComponent) {
5860
addImageStyle.@if.isSet = ${!String.isBlank(q(node).property('imageStyle'))}
5961
}
6062

61-
thumbnail = ${props.image ? Neos.Seo.Image.createThumbnail(
63+
thumbnail = ${props.image ? Neos.Media.Image.createThumbnail(
6264
props.image,
6365
null,
6466
props.width,

0 commit comments

Comments
 (0)