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

Allow SVG width/height to be non-integral values #423

Merged
merged 2 commits into from
Oct 22, 2023
Merged

Conversation

ndw
Copy link
Contributor

@ndw ndw commented Oct 22, 2023

Fix #413

The image properties extension requires that width and height be integers. Rather than rejecting non-integer values, the extension now rounds to the nearest integer.

(Why are they required to be integers? I don't really remember. Of course, raster images always have integral widths and heights. I think some of the downstream processing expects them to be integers.)

@ndw ndw merged commit a2523b4 into docbook:main Oct 22, 2023
3 checks passed
@ndw ndw deleted the iss-413 branch October 22, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Width of scaled SVG image calculated wrong
1 participant