-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
So, after finally getting gerbalyze template & paste to install and run in an Ubuntu Docker python3.10-pip environment (both using a full 'git' install and separately just using 'pip install'), I loaded the output files in several different Gerber viewers but the image I added in Inkscape didn't show up in the newly created Gerber file.
My steps were as follows:
- Export Gerber file from EasyEDA
- Run
gerbalyze template --bottom easyeda.zip output.svg- No errors though a couple of warnings (see below) - Open 'output.svg' in Inkskape and add/resize/move my image (a dithered high res B&W photo) to the bottom silkscreen level (called 'bottom-silk'). Save the image to output-image.svg
- Run
gerbalyze paste easyeda.zip output-image.svg easyeda-image.zip- No errors though a couple of warnings (see below) - Load 'easyeda-image.zip' into a Gerber viewer
The resulting top and bottom board views looked the same as the original -- i.e., no image added.
When I looked inside and compared the new and original zip files, I found that
- Some layers in the original Gerber file were deleted (e.g., Gerber_TopAssemblyLayer.GTA, Gerber_DocumentLayer.GDL, Gerber_DrillDrawingLayer.GDD, How-to-order-PCB.txt -- presumably at least the last one is not really relevant)
- The individual file sizes were all slightly smaller -- hopefully, no essential data was lost
- No evidence of an image being added (as all files were smaller than their original counterparts)
Specifically, the files before looked like:
Length Date Time Name
--------- ---------- ----- ----
12282 2023-04-18 21:47 Gerber_TopLayer.GTL
34796 2023-04-18 21:47 Gerber_BottomLayer.GBL
560729 2023-04-18 21:47 Gerber_TopSilkscreenLayer.GTO
18684 2023-04-18 21:47 Gerber_BottomSilkscreenLayer.GBO
3696 2023-04-18 21:47 Gerber_TopSolderMaskLayer.GTS
2102 2023-04-18 21:47 Gerber_BottomSolderMaskLayer.GBS
9819 2023-04-18 21:47 Gerber_TopPasteMaskLayer.GTP
544 2023-04-18 21:47 Gerber_TopAssemblyLayer.GTA
449 2023-04-18 21:47 Gerber_BoardOutlineLayer.GKO
4293 2023-04-18 21:47 Gerber_DocumentLayer.GDL
61079 2023-04-18 21:47 Gerber_DrillDrawingLayer.GDD
1516 2023-04-18 21:47 Drill_PTH_Through.DRL
700 2023-04-18 21:47 Drill_PTH_Through_Via.DRL
76 2023-04-18 21:47 How-to-order-PCB.txt
--------- -------
710765 14 files```
And after looked like:
```Archive: Gerber_PCB4_2023-04-18-new.zip
Length Date Time Name
--------- ---------- ----- ----
11451 1980-01-01 00:00 Gerber_TopLayer.GTL
3403 1980-01-01 00:00 Gerber_TopSolderMaskLayer.GTS
549358 1980-01-01 00:00 Gerber_TopSilkscreenLayer.GTO
10226 1980-01-01 00:00 Gerber_TopPasteMaskLayer.GTP
37386 1980-01-01 00:00 Gerber_BottomLayer.GBL
2059 1980-01-01 00:00 Gerber_BottomSolderMaskLayer.GBS
18427 1980-01-01 00:00 Gerber_BottomSilkscreenLayer.GBO
561 1980-01-01 00:00 Gerber_BoardOutlineLayer.GKO
1656 1980-01-01 00:00 Drill_PTH_Through.DRL
636 1980-01-01 00:00 Drill_PTH_Through_Via.DRL
--------- -------
635163 10 files```
So in summary:
- Has anything been lost by deleting the listed files and by (slightly) shortening the existing remaining files
- Why wasn't the image added?
- Could the problem be that EasyEDA uses a different Gerber file format and/or layer naming/id than KiKaid?
- What do I need to do to make this work for EasyEDA Gerber files in general and my case in specific?
Note the warnings I got were as follows:
Gerbalyze Template:
```INFO:root:Layer top copper
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer top mask
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer top silk
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer top paste
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer bottom copper
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer bottom mask
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer bottom silk
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer mechanical outline
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer drill plated
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer drill nonplated
INFO:root: Corresponding overlay layer not found. Skipping.
/gerbolyze/venv/lib/python3.10/site-packages/gerbonara-1.0.2-py3.10.egg/gerbonara/excellon.py:573: SyntaxWarning: /tmp/tmpcar8an7g/input/Drill_PTH_Through.DRL:19 "G90": G90 header statement found after end of header
warnings.warn(f'{self.filename}:{self.lineno} "{self.line}": {msg}', SyntaxWarning)
/gerbolyze/venv/lib/python3.10/site-packages/gerbonara-1.0.2-py3.10.egg/gerbonara/excellon.py:573: SyntaxWarning: /tmp/tmpcar8an7g/input/Drill_PTH_Through_Via.DRL:15 "G90": G90 header statement found after end of header
warnings.warn(f'{self.filename}:{self.lineno} "{self.line}": {msg}', SyntaxWarning)
(venv) root@08ef15a8041d:/EasyEDA-Pro/projects# gerbolyze template --bottom Gerber_PCB4_2023-04-18.zip Gerber_PCB4_2023-04-18-template2.svg
/gerbolyze/venv/lib/python3.10/site-packages/gerbonara-1.0.2-py3.10.egg/gerbonara/layers.py:789: UserWarning: Layer "bottom paste" not found. Found layers: top copper, top mask, top silk, top paste, bottom copper, bottom mask, bottom silk, mechanical outline
warnings.warn(f'Layer "{side} {use}" not found. Found layers: {", ".join(side + " " + use for side, use in self.graphic_layers)}')
/gerbolyze/venv/lib/python3.10/site-packages/gerbonara-1.0.2-py3.10.egg/gerbonara/excellon.py:573: SyntaxWarning: /tmp/tmptpeao1um/input/Drill_PTH_Through.DRL:19 "G90": G90 header statement found after end of header
warnings.warn(f'{self.filename}:{self.lineno} "{self.line}": {msg}', SyntaxWarning)
/jgerbolyze/venv/lib/python3.10/site-packages/gerbonara-1.0.2-py3.10.egg/gerbonara/excellon.py:573: SyntaxWarning: /tmp/tmptpeao1um/input/Drill_PTH_Through_Via.DRL:15 "G90": G90 header statement found after end of header
warnings.warn(f'{self.filename}:{self.lineno} "{self.line}": {msg}', SyntaxWarning)```
Gerbalize paste warnings:
```INFO:root:Layer top copper
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer top mask
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer top silk
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer top paste
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer bottom copper
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer bottom mask
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer bottom silk
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer mechanical outline
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer drill plated
INFO:root: Corresponding overlay layer not found. Skipping.
INFO:root:Layer drill nonplated
INFO:root: Corresponding overlay layer not found. Skipping.
/gerbolyze/venv/lib/python3.10/site-packages/gerbonara-1.0.2-py3.10.egg/gerbonara/excellon.py:573: SyntaxWarning: /tmp/tmp89rwf6hx/input/Drill_PTH_Through.DRL:19 "G90": G90 header statement found after end of header
warnings.warn(f'{self.filename}:{self.lineno} "{self.line}": {msg}', SyntaxWarning)
/gerbolyze/venv/lib/python3.10/site-packages/gerbonara-1.0.2-py3.10.egg/gerbonara/excellon.py:573: SyntaxWarning: /tmp/tmp89rwf6hx/input/Drill_PTH_Through_Via.DRL:15 "G90": G90 header statement found after end of header
warnings.warn(f'{self.filename}:{self.lineno} "{self.line}": {msg}', SyntaxWarning)```
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels