Recent Releases of cairosvg
cairosvg -
- Drop support of Python 3.7 and 3.8, add support of Python 3.12 and 3.13
- Optimize math operations
- Use pathlib
- Close paths for ellipses and circles
- Fix output ratio for SVG surfaces
- Avoid endless loops when updating def attributes
- Round PNG size
- Don’t crash when more than 2 values are given to translate and scale functions
- Python
Published by liZe about 1 year ago
cairosvg - 2.7.0
WARNING: this is a security update.
When processing SVG files, CairoSVG could access other files online, possibly leading to very long renderings or other security problems.
This feature is now disabled by default. External resources can still be accessed using the "unsafe" or the "url_fetcher" parameter.
- Python
Published by liZe about 3 years ago
cairosvg -
- Drop support of Python 3.5 and 3.6, add support of Python 3.9, 3.10 and 3.11
- Support crispEdges value for text antialiasing
- Don’t crash when including CMYK images
- Only update docstrings when not optimized
- Don’t restore current point after empty paths
- Assume that 1ch equals 0.5em
- Fix various deprecation warnings
- Python
Published by liZe over 3 years ago
cairosvg -
WARNING: this is a security update.
When processing SVG files, CairoSVG was using two regular expressions which are vulnerable to Regular Expression Denial of Service (REDoS).
If an attacker provided a malicious SVG, it could make CairoSVG get stuck processing the file for a very long time.
Other bug fixes:
- Fix marker positions for unclosed paths
- Follow hint when only outputwidth or outputheight is set
- Handle opacity on raster images
- Don’t crash when use tags reference unknown tags
- Take care of the next letter when A/a is replaced by l
- Fix misalignment in node.vertices
- Python
Published by liZe over 5 years ago
cairosvg -
- Drop support of Python 3.5, add support of Python 3.9.
- Add EPS export
- Add background-color, negate-colors, and invert-images options
- Improve support for font weights
- Fix opacity of patterns and gradients
- Support auto-start-reverse value for orient
- Draw images contained in defs
- Add Exif transposition support
- Handle dominant-baseline
- Support transform-origin
- Python
Published by liZe over 5 years ago
cairosvg -
- Fix race condition in tests
- Fix scale for images with no viewBox
- Python
Published by liZe over 6 years ago
cairosvg -
- Fix the --scale parameter
- Allow href attributes with no namespace
- Fix the tree root detection
- Python
Published by liZe almost 7 years ago
cairosvg -
- Fix aspect and position when resizing root SVG tag
- Follow aspect and position hints when using forced output size
- Python
Published by liZe about 7 years ago
cairosvg -
- Drop Python 3.4 support
- Make text selectable on generated PDF files
- Don't inherit dx and dy attributes
- Fix support of alignment-baseline="hanging"
- Fix backslashes in docstrings and comments
- Fix local anchors with files with no given URL
- Close VERSION's file descriptor
- Clean packaging
- Include LICENSE in distributed packages
- Python
Published by liZe over 7 years ago
cairosvg -
- Clean packaging
- Fix T commands used with previous relative commands in paths
- Use real functions for svg2* commands, improving IDE integration
- Fix files management on Windows
- Handle image-rendering property
- Fix crash with some text samples
- Fix position of embedded svg tags with a viewbox not at position (0, 0)
- Add output-width and output-height options
- Handle references to inner document tags defined after the anchor
- Fix offsets for texts on paths
- Python
Published by liZe over 7 years ago
cairosvg -
- Use http://www.w3.org/2000/svg as default namespace
- Python
Published by liZe over 8 years ago
cairosvg -
- Use cssselect2 and tinycss2 instead of cssselect and tinycss
- Don't require lxml anymore
- Rely on defusedxml to detect unsafe SVG files
- Python
Published by liZe over 8 years ago
cairosvg -
- Handle
text-alignin textPath tags - Test with Python 3.6
- Python
Published by liZe about 9 years ago
cairosvg -
- Don't crash on relative refs with no input URL
- Python
Published by liZe over 9 years ago
cairosvg -
- Drop Python 2 support
- Drop pycairo support
- Rely on cairocffi, lxml, cssselect, pillow and tinycss
- Fix markers
- Fix URL/id handling
- Use bounding boxes for gradients
- Split deployment and development tests
- Add a scale option
- Add a parent size option
- Test with Travis
- Python
Published by liZe over 9 years ago
cairosvg -
WARNING: this is a security update.
CairoSVG was vulnerable to XML eXternal Entity (XXE) attacks, this release fixes this vulnerability by not resolving the XML entities anymore.
The --unsafe option has been added to force the resolution of XML
entities. Obviously, this option is not safe and should only be used with
trusted SVG files.
- Python
Published by liZe almost 10 years ago