AEM上的一个图片转换工具
目的:
不同情况下,同样一张图片,需要不一样大小/背景/尺寸显示.
例子:
dam下面有一张940 x 300 的图片: http://localhost:4502/content/dam/geometrixx/shapes/W07.jpg
如果想要以200 x 100的像素显示, 就可以在OSGI上定义一个转换规则,比如rule-small, 然后就可以
用目标像素访问了: http://localhost:4502/content/dam/geometrixx/shapes/W07.jpg.transform/small/img.jpg
开发过程中,可以直接使用在线placeholder上面的图片. 参考 https://placeholder.com/