Copied to clipboard

Flag this post as spam?

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


  • Menno Mout 7 posts 78 karma points c-trib
    Dec 14, 2022 @ 08:04
    Menno Mout
    0

    GetCropUrl use crop dimensions

    Is there a reason that GetCropUrl("cropAlias") returns the image using crop dimensions by default and that GetCropUrl(cropAlias:"cropAlias", furtherOptions:"someOptionsHere") doesn't do this but requires the parameter useCropDimensions to be set to true? I had to take a dive into the source to understand what was happening but don't understand the reason why. To me it would seem logical that GetCropUrl uses the dimensions of the crop by default unless specified otherwise. Currently useCropDimensions is set to false by default. This causes width and height to be null because they are not set in the method and therefore are not appended in the GetImageUrl method. Maybe I'm misunderstanding something here so any help is appreciated.

Please Sign in or register to post replies

Write your reply to:

Draft