Copied to clipboard

Flag this post as spam?

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


  • Jaypennson Amang 11 posts 91 karma points
    Feb 24, 2022 @ 09:32
    Jaypennson Amang
    0

    No Overload Method for GetCropURL

    Good Day!

    Currently working on displaying the images under a list view with an alias "square" using the image cropper.

    However, I'm having error on getting the url and returns an error of " No overload for method 'GetCropUrl' takes 1 arguments "

    enter image description here

    I tried it in version8 and it seems to be working. But implementing the same method to version 9 give me this result:

    enter image description here

    Appreciate your help here. Thanks!

  • Erik Eelman 81 posts 321 karma points
    Feb 24, 2022 @ 10:14
    Erik Eelman
    0

    Hi Jaypennson,

    I think you need to add a using statement at the top of your view. The overloads for the imagecropper are in Umbraco.Extensions.

    @using Umbraco.Extensions
    
  • Jaypennson Amang 11 posts 91 karma points
    Feb 27, 2022 @ 06:20
    Jaypennson Amang
    0

    Hi Erik,

    Thanks for the answer, but still getting the error.

    Found another work around to stick with the dynamic way of outputting the crop url is:

    img [email protected]("image", "square")

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft