SVG Regression: Intrinsic Ratios
See original GitHub issueI am using the CLI to build my PDFs, which contain both inline and <img/>
SVGs, which may or may not have an intrinsic height and/or width. Instead, all images are sized using CSS-only.
After updating to 53-stable, I am now receiving the following error:
File “/usr/local/lib/python3.9/site-packages/weasyprint/layout/preferred.py”, line 122, in min_max ratio = box.replacement.intrinsic_ratio AttributeError: ‘SVGImage’ object has no attribute ‘intrinsic_ratio’
I am assuming 2e96bdee356b7971446861ecd217050d3c8e91f9 has something to do with it. Does this mean I must now specify these dimensions in my SVG files? The problem here is that these SVGs are user-provided, which means I would need to build a processor to add them upon upload.
Or perhaps I am missing something…?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
@mikerockett Version 53.1 has been released today!
Ah right, so that commit was actually the fix, not the problem. 😅 Great stuff, I’ll wait for the release then.