Using cropper, named crops -- does anyone have this working in 7.6.x?
I am still struggling in getting the image cropper to work (and yes, I opened a bug report). Has anyone been able to get named crops with a non-default focal point to work? If so, care to share how?
The image is selected using the media picker, and the actual image resides in the media library.
If I try to use the GetCropUrl on the document, (called masthead) like this:
mastHeadImageUrl = mastHead.GetCropUrl("mastheadImage", "masthead").ToString();
I receive "1985?mode=pad&rnd=131394550750000000"
1985 is the MediaId of the image.
I have tried all of your examples and they all work. Well sorta, preferFocalPoint doesn't work and doing .ToString() on the Url helper doesn't make a tonnes of sense :) But in any case, they all returned the correct path to the media item and the correct custom focal point.
So it seems something else it at play here... Any other details you can share? What type of picker are you using? Is it wrapped in another property editor (NestedContent, ArcheType etc.)?
Using cropper, named crops -- does anyone have this working in 7.6.x?
I am still struggling in getting the image cropper to work (and yes, I opened a bug report). Has anyone been able to get named crops with a non-default focal point to work? If so, care to share how?
Hi John. It might help if you shared what code you are using currently to get the crop and explained what isn't working. Errors? Or nothing?
I defined some pre-defined crops in the Image cropper, for example "masthead".
I am using 7.6.x with the property converters turned on.
Here are some of the incantations that do not work (keep in mind there was experimentation going on, so the code is not optimal):
The image is selected using the media picker, and the actual image resides in the media library. If I try to use the GetCropUrl on the document, (called masthead) like this: mastHeadImageUrl = mastHead.GetCropUrl("mastheadImage", "masthead").ToString();
I receive "1985?mode=pad&rnd=131394550750000000" 1985 is the MediaId of the image.
That is weird!
I have tried all of your examples and they all work. Well sorta,
preferFocalPoint
doesn't work and doing.ToString()
on the Url helper doesn't make a tonnes of sense :) But in any case, they all returned the correct path to the media item and the correct custom focal point.So it seems something else it at play here... Any other details you can share? What type of picker are you using? Is it wrapped in another property editor (NestedContent, ArcheType etc.)?
This is what I did:
Output:
/Rune
is working on a reply...