Sharp: Possible JPEG optimisation: apply blur to AB channels of LAB in low entropy regions

Created on 11 May 2016  路  4Comments  路  Source: lovell/sharp

I'm aware of at least a few people using sharp for image optimisation.

Here's a technique I first saw almost 12(!) years ago that hasn't seen much love recently - http://www.websiteoptimization.com/speed/tweak/blur/

The description is of a manual process, but here's how it can be automated:

  1. Convert to LAB colourspace.
  2. Find low entropy regions.
  3. Reduce the entropy further by applying a mild blur (3x3 kernel, can use SIMD) to the A+B chroma channels.

This should make the frequency-based JPEG algorithm a little more efficient, and could also be used to remove noise.

enhancement

All 4 comments

Guetzli achieves apparently quite impressive compression. Any plans to support it?

@sedubois Did you see the comments in the linked-to https://github.com/jcupitt/libvips/issues/623 ?

Thanks, hadn't seen.

Was this page helpful?
0 / 5 - 0 ratings