Copied to clipboard

Flag this post as spam?

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


  • Dave Pearcey 46 posts 178 karma points
    May 18, 2017 @ 16:19
    Dave Pearcey
    0

    Image Crops not working (7.6.1)

    Hey.

    I have my images stored on azure CDN and everything is set up and working perfectly fine across the board.

    Im using:

    UmbracoFileSystemProviders.Azure ImageProcessor.Web.Plugins.AzureBlobCache

    I'm simply trying to get a cropped image on the page. I've spent hours (days) combing through all the same issues that people have encountered and nothing seems to work for me.

    The most common thing people say is to use absolute URL's rather than local ones.

    I still get the full image, rather than the crop.

    my code:

    @if (CurrentPage.HasValue("articleImages"))
        {
            <div class="slider" itemprop="associatedMedia">
                @{
                    foreach (var image in CurrentPage.articleImages)
                    {
                    <div class="slide" itemscope itemtype="http://schema.org/ImageObject">
                        <img itemprop="contentURL" data-lazy="@Umbraco.Media(image.ToString()).GetCropUrl("banner")" />
                    </div>
                    }
                }
            </div>
        }
    

    Does anyone have any insight into what could possibly be wrong? The connection to the CDN is working with requesting images normally so i know that it works. But it also doesn't matter whether i use local or absolute url's, it still doesn't show the crop.

    Thanks.

  • John Bergman 483 posts 1132 karma points
    May 18, 2017 @ 22:19
    John Bergman
    0

    I have the same issue... and, if you manually set the width and height instead of "banner" it will crop, but it doesn't use the focal point.

  • John Bergman 483 posts 1132 karma points
    May 21, 2017 @ 18:09
    John Bergman
    0

    Bump.

    Anyone have any ideas?

  • Dave Pearcey 46 posts 178 karma points
    May 22, 2017 @ 07:40
    Dave Pearcey
    0

    I've tried what you said and manually putting the crop values in and it still doesnt crop for me.

    I even went as far to delete my bin and obj folders to re-get all the packages and I'm still getting no result.

  • John Bergman 483 posts 1132 karma points
    May 22, 2017 @ 19:11
    John Bergman
    0

    Please post back if you happen to figure this out. Here is the other thread I created a few days ago, seems like the same issue.

    https://our.umbraco.org/forum/using-umbraco-and-getting-started/85779-perplexed-by-getcropurl-in-76

    I opened a bug to report this. For me it is a showstopper because many of my images simply to not render correctly.

    http://issues.umbraco.org/issue/U4-9942

Please Sign in or register to post replies

Write your reply to:

Draft