Copied to clipboard

Flag this post as spam?

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


  • Jules 269 posts 560 karma points
    Oct 20, 2017 @ 14:38
    Jules
    0

    GetCropUrl not working with ImageProcessor AzureBlobCache plugin

    Hi

    Using U7.2.4

    Have installed latest imageprocessor along with:

    ImageProcessor - 2.5.5   
    ImageProcessor.Web - 4.8.6   
    ImageProcessor.Web.Config - 2.3.0.0   
    ImageProcessor.Web.Plugins.AzureBlobCache - 1.3.1   
    

    Have configured media and cache to be stored in Azure blob.

    Umbraco backoffice reads and writes to Azure correctly.

    However, I would expect the following to work i.e. generate a cache item on Azure and reference that:

    @image.GetCropUrl(980, 551, preferFocalPoint: true)
    

    However, only the full size image is returned from the blob

    If I look at the URL output in chrome for the above it is:

    /media/2494445/mypic.jpg?anchor=center&mode=crop&width=980&height=551&rnd=131393272400000000
    

    I can get this to work using remote.axd but I thought this wasn't necessary for Umbraco media

    So the following works:

    @("/remote.axd/myblobaccount.blob.core.windows.net"+ image.GetCropUrl(980, 551, preferFocalPoint: true))
    

    and gives

    https://myblobaccount.blob.core.windows.net/cache/0/d/2/5/0/d/0d250de63660f755dd7b2967fdce49a2fb7434f6.jpg
    

    So I understood that remote.axd is only required on non-Umbraco Media files.

    Am I missing something?

    J

Please Sign in or register to post replies

Write your reply to:

Draft