From a4b45196df2e12ace14c82407e2bc10b0a1eff3e Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 7 Feb 2021 13:54:36 +0100 Subject: Update gerboweb --- gerboweb/templates/index.html | 274 +++++++++++++++++++++--------------------- 1 file changed, 137 insertions(+), 137 deletions(-) (limited to 'gerboweb/templates/index.html') diff --git a/gerboweb/templates/index.html b/gerboweb/templates/index.html index a19fc88..3de8ea5 100644 --- a/gerboweb/templates/index.html +++ b/gerboweb/templates/index.html @@ -1,7 +1,7 @@ - Gerbolyze Raster image to PCB renderer + Gerbolyze Image to PCB Toolchain @@ -10,157 +10,157 @@
-
-

Raster image to PCB converter

-

- Gerbolyze is a tool for rendering black and white raster (PNG) images directly onto gerber layers. You can - use this to put art on a PCB's silkscreen, solder mask or copper layers. The input is a black-and-white PNG - image that is vectorized and rendered into an existing gerber file. Gerbolyze works with gerber files - produced with any EDA toolchain and has been tested to work with both Altium and KiCAD. -

-
+
+

SVG/JPG/PNG to PCB converter

+

+ Gerbolyze is a tool for rendering arbitrary vector (SVG) and raster (PNG/JPG) images directly onto gerber layers. + You can use this to put art on a PCB's silkscreen, solder mask or copper layers. The input is an SVG file + generated from a template. This SVG file has one layer for each PCB layer and the layers are rendered one by one + into the existing gerber file. SVG primitives are converted as-is with (almost) full SVG support, and bitmap + images are vectorized using a vector halftone processor. Gerbolyze works with gerber files produced with any EDA + toolchain and has been tested to work with both Altium and KiCAD. +

+
{% with messages = get_flashed_messages(with_categories=True) %} - {% if messages %} -
- {% for category, message in messages %} -
{{ message }}
- {% endfor %} -
- {% endif %} + {% if messages %} +
+ {% for category, message in messages %} +
{{ message }}
+ {% endfor %} +
+ {% endif %} {% endwith %}
{{reset_form.csrf_token}}
-
-
-

Upload zipped gerber files

-

- First, upload a zip file containing all your gerber files. The default file names used by KiCAD, Eagle - and Altium are supported. -

-
+
+
+

Upload zipped gerber files

+

+ First, upload a zip file containing all your gerber files. The default file names used by KiCAD, Eagle + and Altium are supported. +

+
-
-
- {{gerber_form.csrf_token}} -
-
-
Upload Gerber file:
- -
-
- - -
-
-
+
+
+ {{gerber_form.csrf_token}} +
+
+
Upload Gerber file:
+ +
+
+ + +
+
+
- {% if 'render_job' in session or has_renders %} -
-
-

Download the target side's preview image

-

- Second, download either the top or bottom preview image and use it to align and scale your own artwork - in an image editing program such as Gimp. Then upload your overlay image below. + {% if 'render_job' in session or has_renders %} +

+
+

Download the target side's preview image

+

+ Second, download either the top or bottom SVG template and place your own artwork in it on the appropriate + layers. The template is made to work well with the excellent open-source Inkscape + vector graphics editor. When you are done, upload your overlay below. - Note that you will have to convert grayscale images into binary images yourself. Gerbolyze can't do this - for you since there are lots of variables involved. Our Guideline on image processing gives an overview on - one way to produce agreeable binary images from grayscale source material. -

-
-
- {% if 'render_job' in session %} -
-
-
Processing...
-
(this may take several minutes!)
-
- {% else %} - - {% endif %} -
- -
-
-
+ If you wish to put a bitmap image (PNG/JPG) on your board, simply place it into the SVG on the appropriate + layer. Make sure you select Inkscape's "embed image" option when importing it. +

+
+
+ {% if 'render_job' in session %} +
+
+
Processing...
+
(this may take several minutes!)
+
+ {% else %} + + {% endif %} +
+ +
+
+
-
-
-

Upload overlay image

-

- Now, upload your binary overlay image as a PNG and let gerbolyze render it onto the target layer. The PNG - file should be a black and white binary file with details generally above about 10px size. Antialiased - edges are supported. -

-
-
-
- {{overlay_form.csrf_token}} -
-
-
Upload Overlay PNG file:
- -
-
-
Target layer:
- - - - -
-
- - -
-
-
+
+
+

Upload overlay SVG

+

+ Now, upload your binary overlay as an SVG and let gerbolyze paste it onto the target layers. +

+
+
+
+ {{overlay_form.csrf_token}} +
+
+
Upload Overlay PNG file:
+ +
+
+
Target layer:
+ + + + +
+
+ + +
+
+
- {% if 'vector_job' in session or has_output %} -
-
-

Download the processed gerber files

-
-
- {% if 'vector_job' in session %} -
-
-
Processing...
-
(this may take several minutes!)
-
- {% else %} - - {% endif %} -
- -
- -
-
- {% endif %} {# vector job #} - {% endif %} {# render job #} + {% if 'vector_job' in session or has_output %} +
+
+

Download the processed gerber files

+
+
+ {% if 'vector_job' in session %} +
+
+
Processing...
+
(this may take several minutes!)
+
+ {% else %} + + {% endif %} +
+ +
+ +
+
+ {% endif %} {# vector job #} + {% endif %} {# render job #}
-

Sample images

- - - +

Sample images

+ + +
-- cgit