Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I setup an Image Cropper Datatype and use it as Property in my DocumentType.
Now, the return-Value looks like this:
{{"src":"/media/ke4jskoy/testbild.jpg","focalPoint":{"left":0.5,"top":0.5},"crops":[{"alias":"StoererBild","width":145,"height":200,"coordinates":{"x1":0.18885757398753891,"y1":0.0,"x2":0.13131376557632407,"y2":0.0}}]}}
Any idea, how to get the crop out of this? The crop alias is "StoererBild".
Thanks for any hint.
All the best -
Tom
Found the solution:
@{ ImageCropperValue stoererBild = Model.Value<ImageCropperValue>("bild"); string stoererBildCropUrl = stoererBild.Src + stoererBild.GetCropUrl("StoererBild"); } <img class="dichtImg" src="@stoererBildCropUrl" alt="Open Imagination">
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Using ImageCropper Datatype as Property
Hi,
I setup an Image Cropper Datatype and use it as Property in my DocumentType.
Now, the return-Value looks like this:
Any idea, how to get the crop out of this? The crop alias is "StoererBild".
Thanks for any hint.
All the best -
Tom
Found the solution:
is working on a reply...