Copied to clipboard

Flag this post as spam?

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


  • illumi 9 posts 74 karma points
    Oct 30, 2018 @ 13:50
    illumi
    0

    Image cropper: Multiple crop sets

    We are working on a very large website and need to separate the very large legacy parts from a new section.

    Is there a way to have/access multiple sets of crops?

    I can easily create more instances of the Image Cropper datatype but when using the "GetCropUrl" method there i no way to specify which instance to access.

  • Michaël Vanbrabandt 849 posts 3292 karma points c-trib
    Oct 30, 2018 @ 13:58
    Michaël Vanbrabandt
    0

    Hi illumi,

    can you give some more details about the problem you have?

    Normally you can edit the Image Cropper datatype and add multiple crops where each crop has its own alias and properties.

    Then in the view you can access each crop by using:

     <img src="@Url.GetCropUrl(Model.Content, "image", "banner")" />
    

    where banner is the alias of the crop you setup in the Image cropper.

    Or did I misunderstand your question?

    Hope this helps!

    /Michaël

  • illumi 9 posts 74 karma points
    Oct 30, 2018 @ 14:24
    illumi
    100

    Hi Michaël

    Thanks for replying.

    Turns out that i was wrong. It seems that when you have multiple instances of Image Croppers, the system will access the combined list of crops when using the GetCropUrl method.

    So it works.

  • Michaël Vanbrabandt 849 posts 3292 karma points c-trib
    Oct 30, 2018 @ 14:27
    Michaël Vanbrabandt
    0

    Hi illumi,

    glad you solved the problem!

    Have a nice day!

    /Michaël

Please Sign in or register to post replies

Write your reply to:

Draft