Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When adding SVG picture, handle case where dimensions are SvgUnitType.Percentage #691

Merged
merged 10 commits into from
May 21, 2024

Conversation

jcoliz
Copy link
Contributor

@jcoliz jcoliz commented May 19, 2024

This fixes #687 as-written. I still need to test what happens when SVG has also no viewbox.


PR-Codex overview

This PR updates SVG handling in ShapeCrawler. It adds support for SVG images without explicit dimensions and optimizes size calculations.

Detailed summary

  • Added support for SVG images without width and height tags
  • Improved SVG size calculation for rasterization
  • Introduced methods to convert inch to pixel and point to pixel
  • Updated tests for SVG image handling

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

sonarcloud bot commented May 20, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@ashahabov ashahabov merged commit e307642 into ShapeCrawler:master May 21, 2024
3 checks passed
@ashahabov ashahabov self-assigned this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Refactor
Development

Successfully merging this pull request may close these issues.

SVG AddPicture: Non-square logos without width/height attributes are sized as squares
2 participants