With this change a new image helper is introduced in Neos.Media which allows creating a thumbnail and using its various properties in Fusion object. This way the actual size of a thumbnail can be rendered into the HTML attributes.
Until now we only had the uri from the ImageUri helper and component.
Review instructions
Adjust the image prototype renderer in the Demo like this:
The resulting image should have with and height properties of the generated thumbnail and not the ones of the original.
I'm not 100% sure if we could break something with this change if somebody modified the ImageTag prototype.
We can also target 9.0 if the anybody thinks this would be better.
With this change a new image helper is introduced in Neos.Media which allows creating a thumbnail and using its various properties in Fusion object. This way the actual size of a thumbnail can be rendered into the HTML attributes. Until now we only had the uri from the ImageUri helper and component.
Review instructions
Adjust the image prototype renderer in the Demo like this:
The resulting image should have with and height properties of the generated thumbnail and not the ones of the original.
I'm not 100% sure if we could break something with this change if somebody modified the ImageTag prototype. We can also target 9.0 if the anybody thinks this would be better.