Image optimization on the fly #120
-
Is it possible to perform casual web image optimization for png and jpeg (such as https://tinypng.com/, https://tinyjpg.com/) on top of the image resizer on ImageSharp.Web? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @dodyg We do yes but I need to ship a fix before it's particularly useful as we're sending the wrong (pre action) content length to the browser. There's a fix in the PR here Once that's in you'll be able to use the event |
Beta Was this translation helpful? Give feedback.
Hi @dodyg
We do yes but I need to ship a fix before it's particularly useful as we're sending the wrong (pre action) content length to the browser.
There's a fix in the PR here
https://github.com/SixLabors/ImageSharp.Web/pull/121/files#diff-b4c81dd77b1c1eab3717c630947e2e4aR315
Once that's in you'll be able to use the event
OnProcessedAsync
which provides you the process stream to further optimize.