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. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You have to implement and register your own You can use the
There's two ways:
|
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
You have to implement and register your own
IImageCache
You can use the
PhysicalFileSystemCache
for inspiration.There's two ways:
IImageWebProcessor
that captures a single query and converts it into a predefined process.