You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
import os
from gerber import load_layer
from gerber.render import RenderSettings, theme
from gerber.render.cairo_backend import GerberCairoContext
# The default style can be overridden by passing a RenderSettings instance to
# render_layer().
# First, create a settings object:
our_settings = RenderSettings(color=theme.COLORS['white'], alpha=0.85)
# Open the gerber files
copper = load_layer('f.gbl')
# Create a new drawing context
ctx = GerberCairoContext()
# Draw the copper layer. render_layer() uses the default color scheme for the
# layer, based on the layer type. Copper layers are rendered as
ctx.render_layer(copper)
# Write output to png file
ctx.dump('gbl.png')
#
The error is:
Segmentation fault (core dumped)
Is someone know what's going on?
My environment: ubuntu16.04 x64 & python2.7.6
The text was updated successfully, but these errors were encountered:
Hello, everyone!
I ran pcb_example.py successfully and got corresponding images.
but fail to convert .gbl file to png file
2G09E752G0.zip
This is my test file:
The error is:
Segmentation fault (core dumped)
Is someone know what's going on?
My environment: ubuntu16.04 x64 & python2.7.6
The text was updated successfully, but these errors were encountered: