sup7even / image-cropper-configuration
图像裁剪器的动态配置
dev-master / 0.1.x-dev
2017-02-15 12:30 UTC
Requires
- typo3/cms-core: ^8.5
Replaces
- image_cropper_configuration: dev-master
This package is auto-updated.
Last update: 2020-01-10 16:07:22 UTC
README
本扩展允许为内容元素或表 + FAL 字段名称定义每个 CType
的裁剪配置。
此扩展处于高度alpha阶段 ;)
示例
示例显示了为 CType exampleA 和 exampleB 的两个裁剪配置。
defaultCropArea {
x = 0.0
y = 0.0
width = 1.0
height = 1.0
}
cropVariants {
tt_content.exampleA {
desktop {
title = Desktop (1110 x 1322)
allowedAspectRatios {
default {
title = 0,84:1
value = 1110/1322
}
}
selectedRatio = default
cropArea < defaultCropArea
}
mobile {
title = Mobile (1474 x 970)
allowedAspectRatios {
default {
title = 1,52:1
value = 1474/970
}
}
selectedRatio = default
cropArea < defaultCropArea
}
}
tt_content.exampleB {
desktop {
title = Desktop (2620 x 1310)
allowedAspectRatios {
2:1 {
title = 2:1
value = 2.0
}
}
selectedRatio = 2:1
cropArea < defaultCropArea
}
mobile {
title = Mobile (1536 x 1024)
allowedAspectRatios {
138:1 {
title = 1.38:1
value = 1536/1024
}
}
selectedRatio = 138:1
cropArea < defaultCropArea
}
}
}