fritzing-app icon indicating copy to clipboard operation
fritzing-app copied to clipboard

Gerber output doesn't match pcb view

Open vanepp opened this issue 1 year ago • 2 comments

Current Behaviour

Load this svg

test-orig

as a pcb image in Fritzing. In pcb view it looks like this

bug1

but in the geber output it looks like this (displayed here by gerbv

bug2

the extra images are in the svg (displayed here in Inkscape)

bug3

but they don't appear in the Fritzing pcb view but do appear in the gerber output.

Build:

Version 1.0.4 (CD-2088-0-a8c6ef7c 2024-10-07) 64 [Qt 6.5.3]

Operating System: Windows 10

Steps to reproduce:

See ## Current Behaviour

Expected Behaviour

The gerber output should match what appears in Fritzing pcb view (i.e. only the rectangle not all the extra rectangles which don't render in Fritzing pcb view.)

vanepp avatar Dec 31 '24 22:12 vanepp

The QSvg renderer probably removes the invisible elements at an early point. It would be tricky to show them in PCB view, also not in line with other renderers. So, we should remove these invisible elements when transforming the SVG into Gerber.

KjellMorgenstern avatar Apr 29 '25 14:04 KjellMorgenstern

That should have the desired result (no extra elements in the gerber output) and thus be a good solution.

vanepp avatar Apr 29 '25 16:04 vanepp