What makes html2canvas-pro different from html2canvas?
mainhtml2canvas-pro is a fork of niklasvh/html2canvas that includes several advanced features and fixes:
- Advanced Color Support: Includes
color()(including relative colors) andlab()/lch()/oklab()/oklch()functions. - CSS Support: Support for
object-fiton<img>elements,clip-path(inset, circle, ellipse, polygon, path), andwriting-mode(horizontal-tb, vertical-rl, vertical-lr). - Image Rendering: Control over image smoothing via the CSS
image-renderingproperty andimageSmoothing/imageSmoothingQualityoptions. - Security: Built-in input validation for XSS/SSRF protection.
- Monitoring: Built-in performance measurement API.