How to return from OnBeforeLoadAsync when calling AddImageSharp options #340
Answered
by
JimBobSquarePants
rndthoughts
asked this question in
Q&A
-
Can someone give me an example of how to return from OnBeforeLoadAsync:
The above sample code should add the width and height commands to the incoming request pre-processing but I cant figure out what to return. It seems to suggest i need to return a Task<DecoderOptions?> but I dont know where to get it from or how to construct one? |
Beta Was this translation helpful? Give feedback.
Answered by
JimBobSquarePants
Oct 29, 2023
Replies: 1 comment
-
You actually want to use See the example in the docs. https://docs.sixlabors.com/articles/imagesharp.web/gettingstarted.html |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JimBobSquarePants
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You actually want to use
OnParseCommandsAsync
for this.See the example in the docs.
https://docs.sixlabors.com/articles/imagesharp.web/gettingstarted.html