Skip to content

How to cache images on Azure storage #101

Answered by JimBobSquarePants
srdjo asked this question in Q&A
Discussion options

You must be logged in to vote

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 ?

You have to implement and register your own IImageCache

You can use the PhysicalFileSystemCache for inspiration.

Also is there a way to make named presets like there was in ImageProcessor.Web ?

There's two ways:

  1. Implement and register your own IImageWebProcessor that captures a single query and converts it into a predefined process.
  2. Use ASP.NET Core TagHelpers to render the correct querystring command based upon your own application logic.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@JimBobSquarePants
Comment options

Answer selected by JimBobSquarePants
Comment options

You must be logged in to vote
1 reply
@JimBobSquarePants
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants