-
Notifications
You must be signed in to change notification settings - Fork 67
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
Board creation - pixel / mm accuracy #36
Comments
Hi there,
Yes, that board generation code will generate an image, which if printed to
the size of the paper (zero margins) it will give the right size. For
example A4 is 297x210mm - assuming you use 10 pixels per mm it will
generate you an image 2970x2100 - it's not really doing anything fancy!
There might be a way to improve it to produce a PDF which will be directly
printable at the right size, I usually did this manually afterwards using
something like Gimp where I would use "print to file" with zero margins.
Hopefully that helps,
Oliver
…On Thu, Sep 8, 2022 at 4:14 AM Philip Keller ***@***.***> wrote:
multical boards --boards example_boards/charuco_16x22.yaml --paper_size A2
--pixels_mm 10 --write my_images
this creates an image where the black squares are 248x248 pixel. when
using gimg to create the pdf and then print it, the squares are not 25x25
mm on the paper logically. when using
multical boards --boards example_boards/charuco_16x22.yaml --paper_size A2
--pixels_mm 10 --margin_mm 0 --write my_images
the black squares are 250x250 pixel and have the correct size on paper.
after having a quick look at the code, i think the margin_mm parameters
are not forcefully set to 0 when specifying a paper_size. but i did not
really invest a lot of effort and thoughts into debugging. maybe you
quickly have an idea, whats going on here:)
—
Reply to this email directly, view it on GitHub
<#36>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAITRZKRNWCZZZ73VUEBWO3V5C5NRANCNFSM6AAAAAAQG5PUWU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
multical boards --boards example_boards/charuco_16x22.yaml --paper_size A2 --pixels_mm 10 --write my_images
this creates an image where the black squares are 248x248 pixel. when using gimp to create the pdf and then print it, the squares are not 25x25 mm on the paper logically. when using
multical boards --boards example_boards/charuco_16x22.yaml --paper_size A2 --pixels_mm 10 --margin_mm 0 --write my_images
the black squares are 250x250 pixel and have the correct size on paper.
after having a quick look at the code, i think the margin_mm parameters are not forcefully set to 0 when specifying a paper_size. but i did not really invest a lot of effort and thoughts into debugging. maybe you quickly have an idea, whats going on here:)
The text was updated successfully, but these errors were encountered: