I have been wondering about adding a image cropper converter to my Value Converters package so that they would always return ImageCropDataSet, I would also need to add an extension method for GetCropUrl.
I have your value convertors installed and they're a huge help in keeping things tidy. Adding in support for the Image Cropper would get a thumbs up from me!
Getting the uncropped image from an image cropper?
I need to get the uncropped version of an image from the image cropper. I can't seem to find a way to achieve this but presumably it's possible?
My objects are typed so I need to know how to get them that way.
Cheers
Hi Jon,
Are you using a media, content or member item?
Also what is the name of your cropper property alias?
Jeavon
Hi Jeavon,
I'm not sure what you mean by media, content or member item. Can you elaborate and apologies for my noobiness!
Here's how I'm getting my thumbnail crop:
Jon
No worries, show me how you set @photo
It gets set in a loop of items:
Each of the children represents a photo and has the image cropper property "image" on it.
Ok, then you will need to deserialise the object like this:
Jeavon
Works perfectly Jeavon, thanks!
In the interests of keeping my Razor tidy it would be nice if this was accessible through the normal API but hey ho. It works.
Cheers,
Jon
Yeah this little cheat also came to me:
I have been wondering about adding a image cropper converter to my Value Converters package so that they would always return ImageCropDataSet, I would also need to add an extension method for GetCropUrl.
Thinking about it....
I have your value convertors installed and they're a huge help in keeping things tidy. Adding in support for the Image Cropper would get a thumbs up from me!
Ah great to hear! Could you please mark the correct answer in this thread as it's helpful to others searching for the same thing.
is working on a reply...