DOM to Image

DOM to Image is a library which can turn arbitrary DOM node into a vector (SVG) or raster (PNG or JPEG) image, written in JavaScript. It's based on domvas by Paul Bakaus and has been completely rewritten, with some bugs fixed and some new features (like web font and image...

Cost / License

  • Free
  • Open Source

Platforms

  • Self-Hosted
-
No reviews
0likes
0comments
0news articles

Features

Suggest and vote on features
No features, maybe you want to suggest one?

 Tags

DOM to Image News & Activities

Highlights All activities

Recent activities

No activities found.

DOM to Image information

  • Developed by

    Anatolii Saienko
  • Licensing

    Open Source and Free product.
  • Alternatives

    2 alternatives listed
  • Supported Languages

    • English

AlternativeTo Categories

DevelopmentPhotos & Graphics
DOM to Image was added to AlternativeTo by David on and this page was last updated .
No comments or reviews, maybe you want to be first?
Post comment/review

What is DOM to Image?

DOM to Image is a library which can turn arbitrary DOM node into a vector (SVG) or raster (PNG or JPEG) image, written in JavaScript. It's based on domvas by Paul Bakaus and has been completely rewritten, with some bugs fixed and some new features (like web font and image support) added.

Rendering options

filter

A function taking DOM node as argument. Should return true if passed node should be included in the output (excluding node means excluding it's children as well). Not called on the root node.

bgcolor

A string value for the background color, any valid CSS color value.

height, width

Height and width in pixels to be applied to node before rendering.

style

An object whose properties to be copied to node's style before rendering. You might want to check this reference for JavaScript names of CSS properties.

quality

A number between 0 and 1 indicating image quality (e.g. 0.92 => 92%) of the JPEG image. Defaults to 1.0 (100%)