Copied to clipboard

Flag this post as spam?

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


  • Gordon Saxby 1465 posts 1887 karma points
    Jun 26, 2017 @ 09:31
    Gordon Saxby
    0

    Enhance Image Cropper or replace with alternative

    We have a problem with the built-in image cropper in V7 and this issue describes it perfectly -

    http://issues.umbraco.org/issue/U4-5693

    With this client, it is not an option to expect them to manually resize / expand / pad images, so we need an Umbraco or code-based solution.

    Is it possible to alter the functionality of the image cropper, or is there an alternative image cropper datatype?

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Jun 26, 2017 @ 11:06
    David Brendel
    0

    Hi Gordon,

    not sure if I fully understand but you want to do the image resizing done by code? Umbraco comes with ImageProcessor which can be used for auto resizing images based on query params I think.

    Maybe have a look into that.

    Regards David

  • Gordon Saxby 1465 posts 1887 karma points
    Jun 26, 2017 @ 11:13
    Gordon Saxby
    0

    No, I would like the image cropper to be able to "reduce" in size beyond the shortest edge of the image.

    At the moment, we have a rectangular crop defined that is used on a listing page. A particular image that has been uploaded is much wider than it is tall and therefore the cropper does not allow the user to get / show the entire width of the image, because the cropper will not go any further when the image reaches the same height (or width) as the crop.

    What I want is the ability to keep on reducing the image and pad the top / bottom (or left / right). Ideally I would also like to be able to move the image around within the padding space.

    This is because we want the client to be able to upload their own images and create the crops themselves - and to be able to use the entire image even if it doesn't fit within / match the crop width / height ratio.

Please Sign in or register to post replies

Write your reply to:

Draft