fritzing / fritzing-app

Fritzing desktop application
http://fritzing.org
Other
4.06k stars 838 forks source link

Image scale is wrong when exported to Gerber #4154

Open Phantomx2 opened 4 months ago

Phantomx2 commented 4 months ago

Current Behaviour

When a PCB is exported to Gerber file the silkscreen images size are not matching the ones in fritzing. The images in the gerber file are always the same size no matter the size parameter in fritzing.

image Bug.zip

Build: 1.0.3

Operating System: Windows 11

Steps to reproduce:

Expected Behaviour

The image in the gerber file should be the same size as in fritzing.

See forum post for more informations: https://forum.fritzing.org/t/silkscreen-image-wrong-size/24214/4

KjellMorgenstern commented 4 months ago

If applicable, an SVG can be used instead to avoid the scaling problem. To try this, I traced the bitmap with inkscape:

output

Phantomx2 commented 4 months ago

I am using an svg in the included file, it doesn't fix the issue for me. In fact, non-svg files just appear as black in my case.

KjellMorgenstern commented 4 months ago

In that case the SVG you are using probably contains a base64 encoded PNG image. It is not a vector graphic, although it is stored in a SVG container.

When I use the SVG from my previous post, scaling works:

image

image

Phantomx2 commented 4 months ago

Ho, I exported it from photoshop so you are probably right about that.

KjellMorgenstern commented 4 months ago

I created #4155 about the just black (sometimes also blank) image. The alpha channel is currently ignored.