-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Short description of the enhancement
Add interlaced loading of JPGs
Optional: Steps that explain the enhancement
- Take a progressive/interlaced JPG (or a baseline JPG)
- Upload it to a PW image field
- In your template output a resized image
foreach($page->images as $image) { $large = $image->width(500); $thumb = $image->size(100, 100); echo "<a href='$large->url'><img src='$thumb->url'></a>"; }
Current vs. suggested behavior
The ImageSizerEngineGD.php should output progressive/interlaced JPGs instead of baseline JPGs. Every major browser supports this right now. It is 2017 (almost 2018). You could add an optional parameter, to be compatible with old browsers. But progressive should be the default.
Here is a nice comparisation between the two formats: http://bbshowcase.org/progressive/
This feature request was also mentioned here
ryancramerdesign/ProcessWire#1915
and here https://processwire.com/talk/topic/4573-add-support-for-progressive-jpeg/
Why would the enhancement be useful to users?
The perceived loading time of your website would be lower, especially on slow connections on mobile. A user sees the image much quicker, but in lower resolution.
There is a good article of Perceived vs. Actual Loading Time over at http://blog.teamtreehouse.com/perceived-performance