Copied to clipboard

Flag this post as spam?

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


  • Dave Jonker 22 posts 72 karma points
    Jul 15, 2016 @ 08:05
    Dave Jonker
    0

    Multiple media picker / image cropper combinations?

    Hi everybody,

    In v7.x the Media picker / image cropper combination was introduced. Meaning the "image" media type is now an image cropper. So that images are both 'cropped' and available in the media section.

    I'm currently working on a project with a lot of different image crop definitions. For example; a news item has very different sizes than a rectangle banner.

    I was wondering if there is a way to have multiple Media picker / image cropper combinations? That way i can have both the crops per doctype and have the images available in the media section.

    Any help would be appreciated! Thanks in advance!

    Dave

  • Dave Jonker 22 posts 72 karma points
    Jul 20, 2016 @ 09:02
    Dave Jonker
    0

    Anyone?

  • Phil Veloso 38 posts 251 karma points
    Apr 06, 2017 @ 21:38
    Phil Veloso
    0

    Hi Dave,

    Hopefully, this can help someone.

    You can find this in the image-cropper documenation.

    Use the code below and call in the node id from the multiple media picker.

    @Umbraco.Media(1234).GetCropUrl("banner")

Please Sign in or register to post replies

Write your reply to:

Draft