Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lukasz Kaleta 5 posts 99 karma points c-trib
    5 days ago
    Lukasz Kaleta
    0

    Creating a custom Image Cropper in Umbraco 8

    Hi.

    Anyone has tried creating their own version of Image Cropper?

    I've copied the original frontend stuff from Umbraco source (only changing the aliases and controller names) to a plugin folder, configured it and the editor works.

    However it does not save the uploaded image in the database, do you know if there's something extra that I need to do to make that work?

    Unfortunatelly I find it very hard to find any documentation related to that.

    I've tried to extend the ImageCropperValueConverter, but after debugging I see that the code is not even being run.

    public class ImageCropperSamValueConverter : ImageCropperValueConverter
    {
        public override bool IsConverter(IPublishedPropertyType publishedPropertyType)
        {
            return publishedPropertyType.EditorAlias.InvariantEquals("ImageCropperSam");
        }
    }
    

    If you have any experience with this I would really appreciate some advice.

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft