Copied to clipboard

Flag this post as spam?

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


  • Zoki 27 posts 103 karma points
    Sep 10, 2019 @ 18:45
    Zoki
    0

    GetCropUrl, how it works now? (v8.1.4)

    I might be out of sync, but what happened with GetCropUrl?

     @if (employee.Image != null)
                    {
                        <img width="384" height="410" src="@[email protected]("employee")" alt="" />
                    }
    

    And that was after trying out everything else what used to work.

    Here

    @employee.Image
    

    returns image path, where

    @employee.Image.GetCropUrl("employee")
    

    Returns query string and all other info (?crop=0.12122113646245732,0.028987497234745328,0,0.34549282559443445&cropmode=percentage&width=384&height=410).

    So combining those two I got a cropped image.

    What usually worked:

    @Url.GetCropUrl(employee, "image", "employee")
    

    Returns empty.

    This is Image Cropper Data Type placed in Document Type, this image is not picked via Media Picker.

  • Heather Floyd 610 posts 1033 karma points MVP 6x c-trib
    Aug 05, 2021 @ 22:18
  • 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