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
    Apr 21, 2017 @ 10:35
    Jules
    0

    ImageProcessor - processing images that are not Umbraco Media items

    Hi all

    Using U7.5.9

    Looking at package.config, we have:

    • ImageProcessor v2.5.2
    • ImageProcessor.Web v4.8.2
    • ImageProcessor.Web.Config v2.3.0.0
    • ImageProcessor.Web.Plugins.AzureBlobCache v1.3.0

    This all works great when we upload images as Media items.

    However, the website also allows users to upload images to their accounts. These images are not processed by Umbraco i.e. they are not media items. We still need to resize/crop these but adding width/height/mode instruction as querystring to the url of an image is not working as I expected.

    User images are all stored in Azure so the complete url with ImageProcessor querystring that we output would be something like

    https://nc.blob.core.windows.net/images/2017/3/a94cd9/da32dc19-befd-401a-9257-debb102254f8.png?width=260&height=260&mode=crop
    

    Is there extra configuration needed to make this happen?

    Jules

  • Damiaan 442 posts 1301 karma points MVP 6x c-trib
    Apr 21, 2017 @ 12:32
    Damiaan
    1

    Hi,

    The querystring in this case is passed to azure, which is not what you want.

    What you could use is the Remote.axd handler from ImageProcessor

    Kind regards
    Damiaan

  • Jules 269 posts 560 karma points
    Apr 21, 2017 @ 21:00
    Jules
    0

    Works a treat. Thanks Damiaan

    Jules

Please Sign in or register to post replies

Write your reply to:

Draft