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
Hello,
Is it possible to obtain the list of all available image cropper profiles? We would like the editor to be able to specify which Image cropped profile to use in order for us to pass this value in to the GetCropUrl function.
Is this possible?
Thanks
If i understand your question correctly, then it is possible.
Here is very simplified example:
using Umbraco.Core.Models; using Umbraco.Core.PropertyEditors; public class CustomService : ICustomService { private readonly IDataTypeService _dataTypeService; public CustomService(IDataTypeService dataTypeService) { _dataTypeService = dataTypeService; } public ImageCropperConfiguration ImageCropperPrevalues(string dataTypeKey = "Image Primary Cropper") { IDataType dataType = _dataTypeService.GetDataType(dataTypeKey); return dataType.ConfigurationAs<ImageCropperConfiguration>(); } }
Hi Bo,
Thanks for this, this is great.
Cheers
You are welcome :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Image Cropper Profiles (V8)
Hello,
Is it possible to obtain the list of all available image cropper profiles? We would like the editor to be able to specify which Image cropped profile to use in order for us to pass this value in to the GetCropUrl function.
Is this possible?
Thanks
If i understand your question correctly, then it is possible.
Here is very simplified example:
Hi Bo,
Thanks for this, this is great.
Cheers
You are welcome :)
is working on a reply...