diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P1.90mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P1.90mm_Vertical.svg
new file mode 100644
index 0000000..9690c71
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P1.90mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_Vertical.svg
new file mode 100644
index 0000000..77c04f1
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Horizontal.svg
index d6277b6..831b7cd 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(0.99400001,0.82625992)">
+ height="1.234"
+ x="0.99000001"
+ y="-0.61699998"
+ width="0.36000001" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Vertical.svg
new file mode 100644
index 0000000..52d2c4b
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal.svg
index b5a1059..53fe1d9 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(2.264,0.82625992)">
+ height="1.234"
+ x="0.99000001"
+ y="-0.61699998"
+ width="0.36000001" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal.svg
index 333a8d9..f62ad7d 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(2.184,1.2949392)">
+ height="1.928"
+ x="1.732"
+ y="-0.96399999"
+ width="0.63" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P15.24mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P15.24mm_Horizontal.svg
index b09ef09..f3ff0d9 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P15.24mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P15.24mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(4.724,1.2949392)">
+ height="1.928"
+ x="1.732"
+ y="-0.96399999"
+ width="0.63" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical.svg
new file mode 100644
index 0000000..9fd0d6d
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical.svg
new file mode 100644
index 0000000..f075af8
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal.svg
index 6ee8ad3..cbf66e3 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(0.91400001,1.2949392)">
+ height="1.928"
+ x="1.732"
+ y="-0.96399999"
+ width="0.63" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal.svg
index 23c2129..6fa8fa3 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(2.104,1.6419222)">
+ height="2.467"
+ x="2.4749999"
+ y="-1.234"
+ width="0.89999998" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P15.24mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P15.24mm_Horizontal.svg
index ea57583..269bed5 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P15.24mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P15.24mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(3.374,1.6419222)">
+ height="2.467"
+ x="2.4749999"
+ y="-1.234"
+ width="0.89999998" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P2.54mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P2.54mm_Vertical.svg
new file mode 100644
index 0000000..12d5d7b
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P2.54mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P20.32mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P20.32mm_Horizontal.svg
index 51579dd..d5cfb04 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P20.32mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P20.32mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(5.914,1.6419222)">
+ height="2.467"
+ x="2.4749999"
+ y="-1.234"
+ width="0.89999998" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P25.40mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P25.40mm_Horizontal.svg
index 951bd89..4b41ea6 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P25.40mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P25.40mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(8.454,1.6419222)">
+ height="2.467"
+ x="2.4749999"
+ y="-1.234"
+ width="0.89999998" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P5.08mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P5.08mm_Vertical.svg
new file mode 100644
index 0000000..46a1a10
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0309_L9.0mm_D3.2mm_P5.08mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P12.70mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P12.70mm_Horizontal.svg
index acbd9cb..5ac0c3d 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P12.70mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P12.70mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(1.654,1.8368678)">
+ height="2.776"
+ x="2.723"
+ y="-1.388"
+ width="0.99000001" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P15.24mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P15.24mm_Horizontal.svg
index 3940bfe..84ff18b 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P15.24mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P15.24mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(2.924,1.8368678)">
+ height="2.776"
+ x="2.723"
+ y="-1.388"
+ width="0.99000001" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P20.32mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P20.32mm_Horizontal.svg
index 97b7880..f4d8a2a 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P20.32mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P20.32mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(5.464,1.8368678)">
+ height="2.776"
+ x="2.723"
+ y="-1.388"
+ width="0.99000001" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P25.40mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P25.40mm_Horizontal.svg
index a495b85..75b6c53 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P25.40mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P25.40mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(8.004,1.8368678)">
+ height="2.776"
+ x="2.723"
+ y="-1.388"
+ width="0.99000001" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P5.08mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P5.08mm_Vertical.svg
new file mode 100644
index 0000000..b1fb90b
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P5.08mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P7.62mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P7.62mm_Vertical.svg
new file mode 100644
index 0000000..5fe0efa
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0411_L9.9mm_D3.6mm_P7.62mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P15.24mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P15.24mm_Horizontal.svg
index de7cf32..e2848ae 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P15.24mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P15.24mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(1.924,2.2684103)">
+ height="3.47"
+ x="3.2720001"
+ y="-1.735"
+ width="1.1900001" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P20.32mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P20.32mm_Horizontal.svg
index 5bb715f..70e1177 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P20.32mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P20.32mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(4.464,2.2684103)">
+ height="3.47"
+ x="3.2720001"
+ y="-1.735"
+ width="1.1900001" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P25.40mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P25.40mm_Horizontal.svg
index 2afc89f..72d2e88 100644
--- a/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P25.40mm_Horizontal.svg
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P25.40mm_Horizontal.svg
@@ -2,11 +2,11 @@
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1" />
Picture generated by PcbDraw
+ transform="translate(7.004,2.2684103)">
+ height="3.47"
+ x="3.2720001"
+ y="-1.735"
+ width="1.1900001" />
+
+
+
+
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P5.08mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P5.08mm_Vertical.svg
new file mode 100644
index 0000000..e6e8232
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P5.08mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P7.62mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P7.62mm_Vertical.svg
new file mode 100644
index 0000000..f01266a
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0414_L11.9mm_D4.5mm_P7.62mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P20.32mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P20.32mm_Horizontal.svg
new file mode 100644
index 0000000..4a44918
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P20.32mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P25.40mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P25.40mm_Horizontal.svg
new file mode 100644
index 0000000..5abf122
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P25.40mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P30.48mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P30.48mm_Horizontal.svg
new file mode 100644
index 0000000..fd3ebfc
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P30.48mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P5.08mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P5.08mm_Vertical.svg
new file mode 100644
index 0000000..440c2d3
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P5.08mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P7.62mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P7.62mm_Vertical.svg
new file mode 100644
index 0000000..8608f46
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0516_L15.5mm_D5.0mm_P7.62mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P15.24mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P15.24mm_Horizontal.svg
new file mode 100644
index 0000000..8ff7eb1
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P15.24mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P20.32mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P20.32mm_Horizontal.svg
new file mode 100644
index 0000000..930fb94
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P20.32mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P25.40mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P25.40mm_Horizontal.svg
new file mode 100644
index 0000000..243028c
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P25.40mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P5.08mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P5.08mm_Vertical.svg
new file mode 100644
index 0000000..2644748
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P5.08mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P7.62mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P7.62mm_Vertical.svg
new file mode 100644
index 0000000..0da5b48
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0614_L14.3mm_D5.7mm_P7.62mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P20.32mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P20.32mm_Horizontal.svg
new file mode 100644
index 0000000..7218a27
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P20.32mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P25.40mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P25.40mm_Horizontal.svg
new file mode 100644
index 0000000..195226c
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P25.40mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P30.48mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P30.48mm_Horizontal.svg
new file mode 100644
index 0000000..04073ae
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P30.48mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P5.08mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P5.08mm_Vertical.svg
new file mode 100644
index 0000000..e3ced71
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P5.08mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P7.62mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P7.62mm_Vertical.svg
new file mode 100644
index 0000000..4e2be85
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0617_L17.0mm_D6.0mm_P7.62mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0918_L18.0mm_D9.0mm_P22.86mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0918_L18.0mm_D9.0mm_P22.86mm_Horizontal.svg
new file mode 100644
index 0000000..a7af1d6
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0918_L18.0mm_D9.0mm_P22.86mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0918_L18.0mm_D9.0mm_P25.40mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0918_L18.0mm_D9.0mm_P25.40mm_Horizontal.svg
new file mode 100644
index 0000000..e7f00af
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0918_L18.0mm_D9.0mm_P25.40mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0918_L18.0mm_D9.0mm_P30.48mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0918_L18.0mm_D9.0mm_P30.48mm_Horizontal.svg
new file mode 100644
index 0000000..57353df
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0918_L18.0mm_D9.0mm_P30.48mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0918_L18.0mm_D9.0mm_P7.62mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0918_L18.0mm_D9.0mm_P7.62mm_Vertical.svg
new file mode 100644
index 0000000..4e8963e
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0918_L18.0mm_D9.0mm_P7.62mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0922_L20.0mm_D9.0mm_P25.40mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0922_L20.0mm_D9.0mm_P25.40mm_Horizontal.svg
new file mode 100644
index 0000000..eda731d
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0922_L20.0mm_D9.0mm_P25.40mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0922_L20.0mm_D9.0mm_P30.48mm_Horizontal.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0922_L20.0mm_D9.0mm_P30.48mm_Horizontal.svg
new file mode 100644
index 0000000..177a62a
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0922_L20.0mm_D9.0mm_P30.48mm_Horizontal.svg
@@ -0,0 +1,154 @@
+
+
diff --git a/KiCAD-base/Resistor_THT/R_Axial_DIN0922_L20.0mm_D9.0mm_P7.62mm_Vertical.svg b/KiCAD-base/Resistor_THT/R_Axial_DIN0922_L20.0mm_D9.0mm_P7.62mm_Vertical.svg
new file mode 100644
index 0000000..5b7afb2
--- /dev/null
+++ b/KiCAD-base/Resistor_THT/R_Axial_DIN0922_L20.0mm_D9.0mm_P7.62mm_Vertical.svg
@@ -0,0 +1,86 @@
+
+
diff --git a/scripts/base/R_Axial_Horizonal_BASE.svg b/scripts/base/R_Axial_Horizonal_BASE.svg
index 3ad13ab..06b5e87 100644
--- a/scripts/base/R_Axial_Horizonal_BASE.svg
+++ b/scripts/base/R_Axial_Horizonal_BASE.svg
@@ -6,7 +6,7 @@
viewBox="0 0 12.31 3.0500001"
id="svg196"
sodipodi:docname="R_Axial_Horizonal_BASE.svg"
- inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
+ inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
@@ -26,19 +26,21 @@
inkscape:pagecheckerboard="0"
inkscape:document-units="mm"
showgrid="true"
- inkscape:zoom="16"
- inkscape:cx="20.6875"
- inkscape:cy="11.09375"
+ inkscape:zoom="32"
+ inkscape:cx="9.015625"
+ inkscape:cy="-0.296875"
inkscape:window-width="2560"
inkscape:window-height="1390"
- inkscape:window-x="1920"
- inkscape:window-y="26"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
inkscape:window-maximized="1"
- inkscape:current-layer="svg196"
+ inkscape:current-layer="res_bean"
viewbox-x="0"
inkscape:object-paths="false"
inkscape:snap-smooth-nodes="true"
- inkscape:snap-grids="true">
+ inkscape:snap-grids="true"
+ inkscape:showpageshadow="0"
+ inkscape:deskcolor="#d1d1d1">
+ originy="0"
+ visible="true" />
+ enabled="true"
+ originx="0"
+ originy="0"
+ visible="true" />
Picture generated by PcbDraw
@@ -87,7 +93,7 @@
+
+
+
+
+
+
diff --git a/scripts/base/R_Axial_Vertical_BASE.svg b/scripts/base/R_Axial_Vertical_BASE.svg
new file mode 100644
index 0000000..8ce4e3c
--- /dev/null
+++ b/scripts/base/R_Axial_Vertical_BASE.svg
@@ -0,0 +1,106 @@
+
+
diff --git a/scripts/generate_horiz_tht_res.py b/scripts/generate_horiz_tht_res.py
deleted file mode 100755
index 7c6554c..0000000
--- a/scripts/generate_horiz_tht_res.py
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/usr/bin/env python
-
-"""
-
-This script is to be ran inside KiCAD-base/Resistor_THT
-
-The base design's resistor is 6.0 x 2.075mm, so a new resistor lenght and width must be
-scaled from this size to the desired size.
-"""
-
-from lxml import etree
-from copy import deepcopy
-import os
-
-res_options = [
- {'din': 'DIN0204', 'l': 3.6, 'd': 1.6, 'ps': [5.08, 7.62]},
- {'din': 'DIN0207', 'l': 6.3, 'd': 2.5, 'ps': [7.62, 10.16, 15.24]},
- {'din': 'DIN0309', 'l': 9.0, 'd': 3.2, 'ps': [12.7, 15.24, 20.32, 25.4]},
- {'din': 'DIN0411','l': 9.9, 'd': 3.6, 'ps': [12.7, 15.24, 20.32, 25.4]},
- {'din': 'DIN0414','l': 11.9, 'd': 4.5, 'ps': [15.24, 20.32, 25.4]},
- #{'din': 'DIN0516','l': 15.5, 'd': 5.0, 'ps': [20.32, 25.4, 30.48]},
- #{'din': 'DIN0614','l': 14.3, 'd': 5.7, 'ps': [15.24, 20.32, 25.4]},
- #{'din': 'DIN0617','l': 17.0, 'd': 6.0, 'ps': [20.32, 25.4, 30.48]},
- #{'din': 'DIN0918','l': 18.0, 'd': 9.0, 'ps': [22.86, 25.4, 30.48]},
- #{'din': 'DIN0922','l': 20.0, 'd': 9.0, 'ps': [25.4, 30.48]},
-]
-
-def map_scale(old_scale, new_scale):
- # Assume a zero old and new min value
- return new_scale / old_scale
-
-def map_stroke_value(s_v, old_scale, new_scale):
- return s_v / new_scale * old_scale
-
-if __name__ == "__main__":
- if not os.path.isdir("export"):
- os.mkdir("export")
-
- for r in res_options:
- for pin_len in r['ps']:
- document = etree.parse("base/R_Axial_Horizonal_BASE.svg")
- root = document.getroot()
-
- # Delete all inkscape grids
- p = root.find("{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}namedview")
- for c in p.findall("{http://www.inkscape.org/namespaces/inkscape}grid"):
- p.remove(c)
-
- # Remove the origin to add later. This is to place them above the pins
- origin = root.find(".//*[@id='origin']")
- root.remove(origin)
-
- # Change the pin's lenght to the one for a particular resistor
- pin = root.find(".//*[@id='main_pin']")
- pin.attrib["d"] = pin.attrib["d"].replace("10", str(pin_len))
-
- # Find the main body, then transform it
- bean = root.find(".//*[@id='res_bean']")
- bean.attrib["transform"] = "translate({}, 0) scale({}, {})".format((pin_len/2)-(r['l']/2), map_scale(6.0, r['l']), map_scale(2.075, r['d']))
-
- bean_outline = root.find(".//*[@id='bean_outline']")
- bean_outline.attrib["style"] = bean_outline.attrib["style"].replace("0.0900001", str(map_stroke_value(0.0900001, 6.0, r['l'])))
-
- # Add the origin back
- root.append(origin)
- # Save
- document.write("export/R_Axial_{:}_L{:.1f}mm_D{:.1f}mm_P{:.2f}mm_Horizontal.svg".format(r['din'], r['l'], r['d'], pin_len))
diff --git a/scripts/generate_tht_res.py b/scripts/generate_tht_res.py
new file mode 100755
index 0000000..bdea499
--- /dev/null
+++ b/scripts/generate_tht_res.py
@@ -0,0 +1,155 @@
+#!/usr/bin/env python
+
+"""
+
+This script is to be ran inside KiCAD-base/Resistor_THT
+
+The base design's resistor is 6.0 x 2.075mm, so a new resistor lenght and width must be
+scaled from this size to the desired size.
+"""
+
+from lxml import etree
+from copy import deepcopy
+import re
+import os
+
+res_options = [
+ {'din': 'DIN0204', 'l': 3.6, 'd': 1.6, 'ps_h': [5.08, 7.62], 'ps_v': [1.90, 2.54, 5.08]},
+ {'din': 'DIN0207', 'l': 6.3, 'd': 2.5, 'ps_h': [7.62, 10.16, 15.24], 'ps_v': [2.54, 5.08]},
+ {'din': 'DIN0309', 'l': 9.0, 'd': 3.2, 'ps_h': [12.7, 15.24, 20.32, 25.4], 'ps_v': [2.54, 5.08]},
+ {'din': 'DIN0411','l': 9.9, 'd': 3.6, 'ps_h': [12.7, 15.24, 20.32, 25.4], 'ps_v': [5.08, 7.62]},
+ {'din': 'DIN0414','l': 11.9, 'd': 4.5, 'ps_h': [15.24, 20.32, 25.4], 'ps_v': [5.08, 7.62]},
+ {'din': 'DIN0516','l': 15.5, 'd': 5.0, 'ps_h': [20.32, 25.4, 30.48], 'ps_v': [5.08, 7.62]},
+ {'din': 'DIN0614','l': 14.3, 'd': 5.7, 'ps_h': [15.24, 20.32, 25.4], 'ps_v': [5.08, 7.62]},
+ {'din': 'DIN0617','l': 17.0, 'd': 6.0, 'ps_h': [20.32, 25.4, 30.48], 'ps_v': [5.08, 7.62]},
+ {'din': 'DIN0918','l': 18.0, 'd': 9.0, 'ps_h': [22.86, 25.4, 30.48], 'ps_v': [7.62]},
+ {'din': 'DIN0922','l': 20.0, 'd': 9.0, 'ps_h': [25.4, 30.48], 'ps_v': [7.62]},
+]
+
+def map_scale(old_scale, new_scale):
+ # Assume a zero old and new min value
+ return new_scale / old_scale
+
+def map_stroke_value(s_v, old_scale, new_scale):
+ return s_v * (new_scale / old_scale)
+
+if __name__ == "__main__":
+ if not os.path.isdir("export"):
+ os.mkdir("export")
+
+ # generate all the horizonal resistors
+ for r in res_options:
+ for pin_len in r['ps_h']:
+ # if r['l'] > 6.0:
+ # document = etree.parse("base/R_Axial_Horizonal_Long_BASE.svg")
+ # orig_ysize = 1.834
+ # else:
+ document = etree.parse("base/R_Axial_Horizonal_BASE.svg")
+ orig_ysize = 2.075
+
+ def mapX(oldX):
+ v = oldX*(r['l']/6.0)
+ return f"{v:.3f}"
+ def mapY(oldY):
+ v = oldY*(r['d']/orig_ysize)
+ return f"{v:.3f}"
+ def mapXY(oldX, oldY):
+ return mapX(oldX) + ',' + mapY(oldY)
+
+ root = document.getroot()
+
+ # Delete all inkscape grids
+ p = root.find("{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}namedview")
+ for c in p.findall("{http://www.inkscape.org/namespaces/inkscape}grid"):
+ p.remove(c)
+
+ # Remove the origin to add later. This is to place them above the pins
+ origin = root.find(".//*[@id='origin']")
+ root.remove(origin)
+
+ # Change the pin's lenght to the one for a particular resistor
+ pin = root.find(".//*[@id='main_pin']")
+ pin.attrib["d"] = pin.attrib["d"].replace("10", str(pin_len))
+
+ # Find the main body, then transform it
+ bean = root.find(".//*[@id='res_bean']")
+ bean.attrib["transform"] = "translate({}, 0)".format((pin_len/2)-(r['l']/2))
+
+ # set new bean path, to scale it nicely including stroke
+ # from design file:
+ # "M 0,0 C 0,1 0.9,1.3 1.5,0.8 H 3 4.5 C 5.1,1.3 6,1 6,0 6,-1 5.1,-1.3 4.5,-0.8 H 3 1.5 C 0.9,-1.3 0,-1 0,0 Z"
+ curveDamp = 0.0
+ if r['l'] > 6.0:
+ curveDamp = ((r['l']-6.0)/20.0) * -0.5
+
+ def dampenCurve(cStartX, cStartY, cLocX, cLocY):
+ deltaX = cLocX - cStartX
+ deltaY = cLocY - cStartY
+ deltaX *= curveDamp
+ deltaY *= curveDamp
+ return mapXY(cLocX+deltaX, cLocY+deltaY)
+
+
+ beanPath = f"M 0,0 \
+ C {mapXY(0.0,1.0)} {dampenCurve(1.5,0.8, 0.9,1.3)} {mapXY(1.5,0.8)} \
+ H {mapX(3.0)} {mapX(4.5)} \
+ C {dampenCurve(4.5, 0.8, 5.1,1.3)} {mapXY(6,1)} {mapXY(6,0)} \
+ {mapXY(6,-1)} {dampenCurve(4.5, -0.8, 5.1,-1.3)} {mapXY(4.5,-0.8)} \
+ H {mapX(3.0)} {mapX(1.5)} \
+ C {dampenCurve(1.5,-0.8, 0.9,-1.3)} {mapXY(0,-1)} 0,0\
+ Z"
+
+ bean_fill = root.find(".//*[@id='bean_fill']")
+ bean_fill.attrib["d"] = beanPath
+
+ bean_outline = root.find(".//*[@id='bean_outline']")
+ bean_outline.attrib["style"] = re.sub(r'stroke-width:\d*\.?\d+', f'stroke-width:{map_stroke_value(0.09, 6.0, r['l']):.4f}', bean_outline.attrib["style"])
+ bean_outline.attrib["d"] = beanPath
+
+ # for each resistor band, also move the rectangle size
+ resBands = [f"res_band{i+1}" for i in range(4)]
+ resBands += [f"res_5band{i+1}" for i in range(5)]
+ resBands += ['res_zeroband']
+ for bandI in resBands:
+ band = root.find(f".//*[@id='{bandI}']")
+ for key in ['x', 'width']:
+ band.attrib[key] = mapX(float(band.attrib[key]))
+ for key in ['y','height']:
+ band.attrib[key] = mapY(float(band.attrib[key]))
+
+ # Add the origin back
+ root.append(origin)
+ # Save
+ document.write("export/R_Axial_{:}_L{:.1f}mm_D{:.1f}mm_P{:.2f}mm_Horizontal.svg".format(r['din'], r['l'], r['d'], pin_len))
+
+ # Generate the vertical resistors
+ for r in res_options:
+ for pin_len in r['ps_v']:
+ document = etree.parse("base/R_Axial_Vertical_BASE.svg")
+ root = document.getroot()
+
+ # Delete all inkscape grids
+ p = root.find("{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}namedview")
+ for c in p.findall("{http://www.inkscape.org/namespaces/inkscape}grid"):
+ p.remove(c)
+
+ # Remove the origin to add later. This is to place them above the pins
+ origin = root.find(".//*[@id='origin']")
+ root.remove(origin)
+
+ # Change the pin's lenght to the one for a particular resistor
+ pin = root.find(".//*[@id='main_pin']")
+ pin.attrib["d"] = pin.attrib["d"].replace("10", str(pin_len))
+
+
+ # Find the main body, then transform it
+ bean = root.find(".//*[@id='res_bean']")
+ bean.attrib["transform"] = "scale({a}, {a})".format(a=map_scale(0.9*2, r['d']))
+
+ bean_outline = root.find(".//*[@id='bean_outline']")
+ # bean_outline.attrib["style"] = re.sub(r'stroke-width:\d*\.?\d+', f'stroke-width:{map_stroke_value(0.09, 0.9*2, r['d']):.4f}', bean_outline.attrib["style"])
+
+ # Add the origin back
+ root.append(origin)
+ # Save
+ document.write("export/R_Axial_{:}_L{:.1f}mm_D{:.1f}mm_P{:.2f}mm_Vertical.svg".format(r['din'], r['l'], r['d'], pin_len))
diff --git a/scripts/resize_canvas.sh b/scripts/resize_canvas.sh
index 699d6bb..2b4c2a5 100755
--- a/scripts/resize_canvas.sh
+++ b/scripts/resize_canvas.sh
@@ -1,8 +1,9 @@
#!/usr/bin/env bash
for i in `find . -name '*.svg'`; do
- if [[ " ./$@ " =~ " $i " ]]; then
+ if [[ !($@ -ef `dirname $i`) ]]; then
+ echo "Skipping $i";
continue
fi
- echo "Processing $i";
- inkscape $i -D -o $i ;
+ echo "Processing $i";
+ inkscape $i -D -o $i;
done