ValidatingRequest? #179
-
Hi everyone, I was wondering if there is an ImageSharp equivalent for ImageProcessors ValidatingRequest which allows devs to add custom instructions based on the URL request (Please check https://imageprocessor.org/imageprocessor-web/imageprocessingmodule/ - ImageProcessingModule.ValidatingRequest) I want to throw a custom error/message when the requested URL contains incorrect resolutions, so people don't overload the server with numerous images - only a predefined list of resolutions will be generated and accessible. The reason why I ask is Umbraco V9 uses ImageSharp where it once used ImageProcessor. I can't seem to find anything on the documentation for ImageSharp - https://docs.sixlabors.com/articles/imagesharp.web/gettingstarted.html Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There’s actually full API docs at the same location. You’re looking for |
Beta Was this translation helpful? Give feedback.
There’s actually full API docs at the same location. You’re looking for
ImageSharpMiddlewareOptions.OnParaeCommandsAsync
.