Copied to clipboard

Flag this post as spam?

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


  • Uma Adhikari 3 posts 73 karma points
    Jun 20, 2024 @ 20:05
    Uma Adhikari
    0

    ImageSharp Not Resizing Images loaded from another server(virtual directory)

    I'm using Umbraco 13 ,ImageSharp is not resizing images(loaded from virtual custom directory from another server).For images inside project's wwwroot folder ,ImageSharp works fine while changing query parameters.Any work around for this?

    Here is code sample , how I'm rendering virtual images

    var virDirImages = new FileServerOptions
    {
        FileProvider = new PhysicalFileProvider(@"\\server1\projectname\wwwroot\images"),
        RequestPath = new PathString("/images"),
        EnableDirectoryBrowsing = false
    };
    
    app.UseFileServer(virDirImages);
    app.UseImageSharp();
    app.UseStaticFiles();
    
  • Yakov Lebski 591 posts 2346 karma points
    Jun 22, 2024 @ 17:24
Please Sign in or register to post replies

Write your reply to:

Draft