We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0b46ee + bd322d2 commit 0700d5fCopy full SHA for 0700d5f
articles/imagesharp.web/gettingstarted.md
@@ -17,8 +17,11 @@ public void ConfigureServices(IServiceCollection services) {
17
18
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) {
19
20
- // Add the image processing middleware.
+ // Add the image processing middleware. Make sure this appears BEFORE app.UseStaticFiles(),
21
+ // otherwise images will be served by ASP.NET's static file middleware before ImageSharp can process them.
22
app.UseImageSharp();
23
+
24
+ app.UseStaticFiles();
25
}
26
```
27
0 commit comments