madskristensen / ImageOptimizer

A Visual Studio extension
Other
163 stars 40 forks source link

Can this be used inside mvc or .net Core #31

Open aloksharma1 opened 7 years ago

aloksharma1 commented 7 years ago

hello,

i would like to know if this project can be turned into a dll to be used inside web projects. something like passing a list of file paths creating optimized images and with option[bool param] of preserving old files by renaming them to filename-old.ext to same place or provided path.

thanks

Edit: this will save a lot of round trip & ftp we need to do these days using pagespeed.

dlemstra commented 7 years ago

Maybe you could use the ImageOptimizer from my Magick.NET project for this. The .NET core version only works on Windows at the moment and I don't know if the compression is as great as the tools used by this project. But I have used it myself to resolved the issues reported by PageSpeed Insights.

itorian commented 6 years ago

Yes you can, that's what I started using https://github.com/itorian/ImageOptimizerOrCompressor. This uses exact same way this ImageOptimizer work, you get both optimization options, best quality and best compression.

aloksharma1 commented 5 years ago

Yes you can, that's what I started using https://github.com/itorian/ImageOptimizerOrCompressor. This uses exact same way this ImageOptimizer work, you get both optimization options, best quality and best compression.

i am surely going to try this one, thanks a lot

madskristensen commented 5 years ago

If your web app is hosted on Azure, just add this NuGet package to your project and forget about it. All images currently on the site and all future images being uploaded will automatically be optimized