How to cache images on Azure storage #101
|
Hi, I am trying to configure ImageSharp.Web with AzureBlobStorageImageProvider and all is working fine but is there a way to cache images on the same Azure storage and not in the local file system ? I am migrating my ASP.Net MVC app to Asp.net Core 3.1 app with ServiceStack and Nuxt.js front end that is hosted on Azure and I would like to prevent cache files clogging my application. Also is there a way to make named presets like there was in ImageProcessor.Web ? Best regards. |
Replies: 2 comments 2 replies
You have to implement and register your own You can use the
There's two ways:
|
|
Can you give me more information on how to implement and register processors and providers ? I just need to enable Entropycrop since I used it in ImageProcessor.Web Thanks in advance |
You have to implement and register your own
IImageCacheYou can use the
PhysicalFileSystemCachefor inspiration.There's two ways:
IImageWebProcessorthat captures a single query and converts it into a predefined process.