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

Images render with their top left at the given location #2

Closed
JoeFurfaro opened this issue Oct 19, 2021 · 0 comments · Fixed by #7
Closed

Images render with their top left at the given location #2

JoeFurfaro opened this issue Oct 19, 2021 · 0 comments · Fixed by #7
Assignees
Labels
bug Something isn't working

Comments

@JoeFurfaro
Copy link
Owner

JoeFurfaro commented Oct 19, 2021

I think it should be their center. Here is an example:

image

From this code:
canvas "Test.png" 1000 1000 { image 0 0 200 "scor.jpg" }

Svg is:
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="1000" height="1000"> <image x="500" y="500" width="200" height="104.16666666666667" href="scor.jpg" /> </svg>

@JoeFurfaro JoeFurfaro added the bug Something isn't working label Oct 26, 2021
@JoeFurfaro JoeFurfaro linked a pull request Oct 28, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants