imazen / imageflow-dotnet-server

A super-fast image server to speed up your site - deploy as a microservice, serverless, or embeddable.
https://docs.imageflow.io
GNU Affero General Public License v3.0
252 stars 33 forks source link

IIS Virtual Directory Issue ASP.NET Core 3.1 #19

Closed MichaelSamteladze closed 4 years ago

MichaelSamteladze commented 4 years ago

Images are not resizing when directory is registered as IIS virtual directory.

lilith commented 4 years ago

ASP.NET Core ignores IIS virtual directories. Use MapPath in Startup.cs instead.

MichaelSamteladze commented 4 years ago

I have upload directory for my website which is outside root directory of website. Upload directory servers images and all other type of files. All works fines, files can be downloaded, images can be viewed. When it comes to imageflow, I can still view images, the only problem is that resize function is not working.

Any solution for that?

gerneio commented 4 years ago

@MichaelSamteladze May want to share some code to give us a better idea of your setup. You can see an example of this in the example Startup.cs. Note that this can be an external directory outside site root (or network path, if you're clever), such is my use case.

https://github.com/imazen/imageflow-dotnet-server/blob/08c1a6542b90d5ef0297112b53e6dbf55c2e05e7/examples/Imageflow.Server.Example/Startup.cs#L92

lilith commented 4 years ago

For more info see https://stackoverflow.com/questions/62894772/net-core-resizing-images-using-imageflow/63082653?noredirect=1#comment112286494_63082653