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 104 karma points c-trib
    Dec 04, 2019 @ 16:03
    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!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies