Skip to content

Commit 8334ee2

Browse files
committed
set backgroud to opaque on default to stay consistent
1 parent e642a83 commit 8334ee2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ This is using Kicad nightly since there is yet no Kicad release containing the i
3030
with:
3131
pcb_file: <path from repo root to .kicad_pcb>
3232
output_path: ${{ github.workspace }}/images
33+
background: transparent # Remove for no transparency
3334

3435
- name: Setup Pages
3536
if: github.ref == 'refs/heads/main'

action.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ inputs:
1212
description: 'Camera zoom, default 1'
1313
required: false
1414
background:
15-
description: 'Image background. Options: transparent, opaque. Default: transparent for PNG, opaque for JPEG'
15+
description: 'Image background. Options: transparent, opaque. Default: opaque for JPEG, transparent for PNG'
1616
required: false
17-
default: 'transparent'
17+
default: 'opaque'
1818
animation:
1919
description: 'If an animation of the PCB rotating should be rendered (mp4 or gif) (background dose not apply)'
2020
required: false

render-pcb.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ help() {
88
echo "Syntax: render-pcb.sh [-f|o|a|h]"
99
echo "options:"
1010
echo "f Path to .kicad_pcb file"
11-
echo "b Image background. Options: transparent, opaque. Default: transparent for PNG, opaque for JPEG"
11+
echo "b Image background. Options: transparent, opaque. Default: opaque for JPEG, transparent for PNG"
1212
echo "o Directory where the images and optinally the animation should be written to."
1313
echo "p Set a prefix for the images diffrent from project name"
1414
echo "a Render animation and select animation output format (mp4 or gif)."
@@ -27,7 +27,7 @@ extract_output_path() {
2727
echo "$1" | sed -e 's/[^\/]*\.kicad_pcb//g'
2828
}
2929

30-
background="transparent"
30+
background="opaque"
3131

3232
while getopts :f:o:p:a:b:z:hv option
3333
do

0 commit comments

Comments
 (0)