I am displaying the color JPG image of A4 document on canvas. However, the letters of the image shown in canvas are not clear.
Recently, I saw the content of image resample through javascript.
Please help me with how to make the characters inside the document image clear using the image filter.