Requests for comment/Reducing image quality for mobile

Many mobile devices with low bandwidth or small screen/slow processor could benefit from showing JPEG images with reduced quality. Such images would transmit much faster and may require less memory to process.

Proposal - Core
Add a "quality" parameter to the image link wiki markup. For example,   would render image.jpg with image quality set to 30% and width reduced to 100px. This parameter might be used by various template authors to substantially reduce thumbnail file size. The corresponding URL would be:

 //upload.wikimedia.org/wikipedia/commons/thumb/3/33/image.jpg/100px-q30-image.jpg  

If quality parameter is not set, -q30 will not be added to URL, thus reusing existing cache and keeping the default hardcoded quality of 80%.

Proposal - Zero
Most of Zero network users operate older devices, frequently using slower networks. For Zero users, we propose server DOM rewrite (already being done for external links and some images). The rewrite would remove the srcset img attribute and change the image src from the default .../image.jpg &rArr;  .../image.jpg/q30-image.jpg. All non-js devices would keep using low quality images, while smart phones would use JavaScript to convert q30 images back to default based on locally set user preferences, carrier settings and network quality (TBD). This javascript should be done before the HTML is fully loaded as to prevent downloading of both the low and high quality images.