Adaptive-Images icon indicating copy to clipboard operation
Adaptive-Images copied to clipboard

Suggested Settings

Open aleshh opened this issue 8 years ago • 1 comments

This is an amazing resource. I would love to see some alternative suggestions for "best practices" configuration settings. For example, I'd love to have people be able to upload 3000-pixel wide images to my site and let AI process all images served up, resizing and optimizing quality. How does this look:

$resolutions   = array(2560, 1920, 1382, 992, 768, 480); // people have big monitors!
$cache_path    = "images/cache"; 
$jpg_quality   = 60; // Google speed tests don't like 75
$sharpen       = TRUE;
$watch_cache   = TRUE;
$browser_cache = 60*60*24*7;

I'm also using the retina version of the script, which seems like it ought to be the default?

<script>document.cookie='resolution='+Math.max(screen.width,screen.height)+("devicePixelRatio" in window ? ","+devicePixelRatio : ",1")+'; path=/';</script>

Would love any thoughts or suggestions.

aleshh avatar Jan 25 '17 14:01 aleshh

I have this resolution setup: $resolutions = array(2048, 1536, 1200, 960, 768, 480, 320);

also i'm using "sharpen=false" and a JPG quality factor of 84.

discotizer avatar Jan 25 '17 14:01 discotizer