Search code examples
algorithmimage-processingjpegimage-scaling

How to scale JPEG image down so that text is clear as possible?


I have some JPEG images that I need scale down to about 80% of original size. Original image dimension are about 700px × 1000px. Images contain some computer generated text and possibly some graphics (similar to what you would find in corporate word documents).

How to scale image so that the text is as legible as possible? Currently we are scaling the imaeg down using bicubic interpolation, but that makes the text blurry and foggy.


Solution

  • Two options:

    1. Use a different resampling algorithm. Lanczos gives you a much less blurrier result.

    2. You ight use an advances JPEG library that resamples the 8x8 blocks to 6x6 pixels.