html2canvas-pro icon indicating copy to clipboard operation
html2canvas-pro copied to clipboard

Feature Request: Option to Disable Image Smoothing for Pixelated/Crisp Rendering

Open chaitanya36000 opened this issue 9 months ago • 1 comments

Currently, when rendering DOM elements containing images, the resulting canvas output often has anti-aliasing/image smoothing applied. This is problematic for use cases where a pixelated or "crisp-edge" rendering style is desired, such as for pixel art, retro-style graphics, or when upscaling low-resolution assets without blurring. While CSS properties like image-rendering: pixelated; can be applied to elements in the DOM, html2canvas-pro doesn't seem to consistently honor this for its internal rendering process or its final scaling, leading to a smoothed output.

chaitanya36000 avatar May 23 '25 09:05 chaitanya36000