Copied to clipboard

Flag this post as spam?

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


  • Saif Obeidat 79 posts 289 karma points
    Jan 27, 2020 @ 08:45
    Saif Obeidat
    0

    How to use ImageGen with media hosted on S3 bucket

    Hi,

    Thanks for this awesome package.

    My website's media is hosted on S3 bucket, I am using a Virtual Path Provider in order to use the original path, so I could retrieve images with original URL's like /media/fklh3sdf/206426.jpg.

    but when it comes to return images that are wrapped with ImageGen properties like /umbraco/imagegen.ashx?&image=/media/fklh3sdf/206426.jpg&width=150 it didn't return, I got a message:

    File not found: File not found: /media/fklh3sdf/206426.jpg

    I don't know the reason, but it seems that ImageGen is searching in /media not in S3 Bucket

    is there a specific configuration for this or is it even possible?

    Thanks.

  • Douglas Robar 3570 posts 4670 karma points MVP 6x admin c-trib
    Jan 27, 2020 @ 13:52
    Douglas Robar
    100

    Hi, Saif,

    Unfortunately ImageGen works with images that are local to the web server, available via UNC share, or available as the result of an http request. Unfortunately ImageGen doesn't support virtual path providers.

    Have a look at the built-in cropping capabilities in Umbraco with the Image Cropper property editor and gain inspiration from this wonderful article using GetCropUrl for more control within your code.

    cheers,
    doug.

Please Sign in or register to post replies

Write your reply to:

Draft