Hello,
I have two questions:
Is it possible to disable the free crop, yet, retain and use other custom defined crop configurations. We do not want authors to crop the image using the free form tool, but, should be able to crop based on the pre-defined crop dimensions.
Is it possible to apply a default crop config on the image as soon as "crop" is clicked or image is loaded in to the html5smartImage.
I'm not looking to extend/create my own component based on html5msartImage, rather wondering whether there is any config or ootb way to do it?
From my understanding, this cannot be achieved, wanted experts here to validate me.
Best,
Sivaram
Solved! Go to Solution.
Views
Replies
Total Likes
I don't know of anyway to do that doesn't at least involve overriding the dialog file for the image component in /apps. By overriding the dialog in /apps/foundation/components/image you could disable the free crop, and then you use a hidden x-type to set the crop dimensions.
One thing to consider about this approach is that it locks your default crop size into the content of the component, so if for some reason in the future you wanted to change those default dimensions you'd have to write a script that would go through and alter all of you existing content. There are some alternate solutions your could consider:
Views
Replies
Total Likes
I don't know of anyway to do that doesn't at least involve overriding the dialog file for the image component in /apps. By overriding the dialog in /apps/foundation/components/image you could disable the free crop, and then you use a hidden x-type to set the crop dimensions.
One thing to consider about this approach is that it locks your default crop size into the content of the component, so if for some reason in the future you wanted to change those default dimensions you'd have to write a script that would go through and alter all of you existing content. There are some alternate solutions your could consider:
Views
Replies
Total Likes
Views
Likes
Replies