Skip to content

Image sizer should output interlaced/progressive JPGs #134

@jmartsch

Description

@jmartsch

Short description of the enhancement

Add interlaced loading of JPGs

Optional: Steps that explain the enhancement

  1. Take a progressive/interlaced JPG (or a baseline JPG)
  2. Upload it to a PW image field
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions