Replies: 1 comment
-
So, first of all I would recommend using PyGerber 3.0.0a4 which is not exactly stable but has much nicer API. from pygerber.gerber.api import GerberFile
from pathlib import Path
path_to_my_gerber_file = Path().cwd() / "example.grb"
gerber_file = GerberFile.from_file(path_to_my_gerber_file)
image = gerber_file.render_with_pillow()
space = image.get_image_space()
print(space.width_mm, space.height_mm) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does
pygerber
provide a function to get the size of a board given a gerber outline file?With https://github.com/curtacircuitos/pcb-tools, I could do this:
Here is my implementation using
pygerber
:Thanks to the team for your work on this project!
Beta Was this translation helpful? Give feedback.
All reactions