Primarily for security purposes to ensure that malicious code cannot be injected. This includes deprecated attributes unless the allowDeprecatedAttributes option is disabled. event attributes) are allowed and others are stripped from the SVG beforeīeing converted. Only standard SVG element attributes (excl. This method attempts to derive the dimensions from input via any width/ height attributes or its calculated If the width and/or height cannot be derived from input then they must be provided via their corresponding options. Input can either be an SVG buffer or string. Otherwise, the PNG will be streamed to STDOUTĬonverts the specified input SVG into a PNG using the options provided via a headless Chromium instance.If the -filename option is passed, the PNG will be written to a file resolved using its value.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |