kamsar / Dianoga

An automatic image optimizer for the Sitecore media library.
Other
104 stars 45 forks source link

Optimize entire library in a background process? #16

Closed malchata closed 7 years ago

malchata commented 7 years ago

More of a question than a feature request, but I'm wondering if there's a way to optimize the entire media library in the background so we can avoid the issues that can come with generating optimized images on the fly (non-optimal results on first request with async/waiting for optimized images on first request with sync). Is there a gist or utility class that can be used to accomplish this sort of thing on demand?

kamsar commented 7 years ago

If you are using the sitecore resizing stuff then not really. Because they are resized at runtime (losing static optimization in the process), so must the optimization be. Sitecore resizing is a good solution because the views can bound image sizes in case a careless editor uploads an unoptimized image (e.g. Too large dimensions, or like a quality 100 jpeg) to prevent breaking the site or slowing it down.

If you want to optimize the base version of things in the media library you could either optimize prior to upload (probably the best results) or look into some of the other optimization libraries for sitecore that do base version optimization. On Fri, Dec 30, 2016 at 9:09 AM Jeremy Wagner notifications@github.com wrote:

More of a question than a feature request, but I'm wondering if there's a way to optimize the entire media library in the background so we can avoid the issues that can come with generating optimized images on the fly (non-optimal results on first request with async/waiting for optimized images on first request with sync). Is there a gist or utility class that can be used to accomplish this sort of thing on demand?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kamsar/Dianoga/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGU_b6QnbGSK3AEwEhAEE48eYOVUEH0ks5rNTqxgaJpZM4LYSj_ .