I start with a large canvas where drawImage()
used to output data from a real image to an HTML canvas.
Later I create thumbnails of this canvas / image that contain much smaller canvas elements (for performance reasons). I just create new canvases with smaller widths and heights and again use drawImage()
, using the original canvas to make a thumbnail.
On many platforms, the thumbnail image of the results looks very pixelated (PC Chrome, PC Firefox, iOS Safari), but on others, such as Mac Firefox, resizing does a much better job of interpolation.
Is there any solution that can give me consistent interpolation? For example, IE has its own CSS property, which can be set:
object.style.msInterpolationMode = "bicubic";
Something similar for other platforms? And specifically during implicit image resizing during drawImage()
? Or any other creative solution is welcome.
source share