Add centre and new batch runner
This commit is contained in:
57
3T_logo_master.svg
Normal file → Executable file
57
3T_logo_master.svg
Normal file → Executable file
@@ -11,9 +11,9 @@
|
|||||||
id="svg21"
|
id="svg21"
|
||||||
sodipodi:docname="3T_logo_master.svg"
|
sodipodi:docname="3T_logo_master.svg"
|
||||||
inkscape:version="1.4.3 (0d15f75, 2025-12-25)"
|
inkscape:version="1.4.3 (0d15f75, 2025-12-25)"
|
||||||
inkscape:export-filename="3T_logo_compact_v2.svg"
|
inkscape:export-filename="3T_lanyard_centred"
|
||||||
inkscape:export-xdpi="44.329895"
|
inkscape:export-xdpi="683.09222"
|
||||||
inkscape:export-ydpi="44.329895"
|
inkscape:export-ydpi="683.09222"
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
@@ -34,14 +34,14 @@
|
|||||||
inkscape:deskcolor="#505050"
|
inkscape:deskcolor="#505050"
|
||||||
inkscape:document-units="in"
|
inkscape:document-units="in"
|
||||||
inkscape:zoom="1.4142136"
|
inkscape:zoom="1.4142136"
|
||||||
inkscape:cx="112.78353"
|
inkscape:cx="113.49064"
|
||||||
inkscape:cy="-70.357123"
|
inkscape:cy="155.91704"
|
||||||
inkscape:window-width="3440"
|
inkscape:window-width="3440"
|
||||||
inkscape:window-height="1369"
|
inkscape:window-height="1369"
|
||||||
inkscape:window-x="1912"
|
inkscape:window-x="1912"
|
||||||
inkscape:window-y="-8"
|
inkscape:window-y="-8"
|
||||||
inkscape:window-maximized="1"
|
inkscape:window-maximized="1"
|
||||||
inkscape:current-layer="g21"
|
inkscape:current-layer="svg21"
|
||||||
showguides="true">
|
showguides="true">
|
||||||
<inkscape:page
|
<inkscape:page
|
||||||
x="0"
|
x="0"
|
||||||
@@ -278,7 +278,7 @@
|
|||||||
transform="translate(155.37012,35.594428)"
|
transform="translate(155.37012,35.594428)"
|
||||||
style="display:inline">
|
style="display:inline">
|
||||||
<ellipse
|
<ellipse
|
||||||
class="white3t"
|
class="white3t"
|
||||||
style="fill-opacity:1;stroke-width:12.054"
|
style="fill-opacity:1;stroke-width:12.054"
|
||||||
id="path2"
|
id="path2"
|
||||||
cx="2541.2942"
|
cx="2541.2942"
|
||||||
@@ -301,6 +301,35 @@
|
|||||||
x="1797.5288"
|
x="1797.5288"
|
||||||
y="1627.064">3t</tspan></text>
|
y="1627.064">3t</tspan></text>
|
||||||
</g>
|
</g>
|
||||||
|
<g
|
||||||
|
id="g2-8"
|
||||||
|
inkscape:label="3t_centre"
|
||||||
|
transform="translate(154.94631,-280.90223)"
|
||||||
|
style="display:inline">
|
||||||
|
<ellipse
|
||||||
|
class="white3t"
|
||||||
|
style="fill:#dee2e3;fill-opacity:1;stroke-width:12.054"
|
||||||
|
id="path2-2"
|
||||||
|
cx="2541.2942"
|
||||||
|
cy="1435.5626"
|
||||||
|
rx="710.97974"
|
||||||
|
ry="721.38434"
|
||||||
|
transform="matrix(0.82960318,0,0,0.82960318,167.61903,89.417659)"
|
||||||
|
inkscape:label="3t_background" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
class="black3t"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:888.889px;font-family:Tienne;-inkscape-font-specification:Tienne;writing-mode:lr-tb;direction:ltr;display:inline;fill:#1e1014;stroke-width:10"
|
||||||
|
x="1797.5288"
|
||||||
|
y="1627.064"
|
||||||
|
id="text1-4"
|
||||||
|
inkscape:label="3t"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan1-5"
|
||||||
|
style="font-size:888.889px;stroke-width:10"
|
||||||
|
x="1797.5288"
|
||||||
|
y="1627.064">3t</tspan></text>
|
||||||
|
</g>
|
||||||
<text
|
<text
|
||||||
xml:space="preserve"
|
xml:space="preserve"
|
||||||
class="white3t"
|
class="white3t"
|
||||||
@@ -308,13 +337,25 @@
|
|||||||
x="2975.0505"
|
x="2975.0505"
|
||||||
y="1652.5947"
|
y="1652.5947"
|
||||||
id="text2"
|
id="text2"
|
||||||
sodipodi:insensitive="true"
|
|
||||||
inkscape:label=".network"><tspan
|
inkscape:label=".network"><tspan
|
||||||
sodipodi:role="line"
|
sodipodi:role="line"
|
||||||
id="tspan2"
|
id="tspan2"
|
||||||
style="stroke-width:10"
|
style="stroke-width:10"
|
||||||
x="2975.0505"
|
x="2975.0505"
|
||||||
y="1652.5947">.network</tspan></text>
|
y="1652.5947">.network</tspan></text>
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
class="white3t"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:888.889px;font-family:Tienne;-inkscape-font-specification:Tienne;writing-mode:lr-tb;direction:ltr;display:inline;fill-opacity:1;stroke-width:10"
|
||||||
|
x="2975.0505"
|
||||||
|
y="1334.2917"
|
||||||
|
id="text2-9"
|
||||||
|
inkscape:label=".network_centre"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan2-4"
|
||||||
|
style="stroke-width:10"
|
||||||
|
x="2975.0505"
|
||||||
|
y="1334.2917">.network</tspan></text>
|
||||||
<metadata
|
<metadata
|
||||||
id="metadata2">
|
id="metadata2">
|
||||||
<rdf:RDF>
|
<rdf:RDF>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 26 KiB |
42
batch_run.sh
Executable file
42
batch_run.sh
Executable file
@@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Batch runner script that processes multiple configuration files
|
||||||
|
|
||||||
|
# Set paths - adjust these as needed
|
||||||
|
PYTHON_PROGRAM="svg_processor.py" # Replace with your actual Python program path
|
||||||
|
INPUT="3T_logo_master.svg" # Path to input
|
||||||
|
CONFIG_DIR="configs" # Path to configs folder
|
||||||
|
OUTPUT="out" # Path to output folder
|
||||||
|
|
||||||
|
# Create output directory if it doesn't exist
|
||||||
|
mkdir -p "$OUTPUT_DIR"
|
||||||
|
|
||||||
|
# Check if config directory exists
|
||||||
|
if [ ! -d "$CONFIG_DIR" ]; then
|
||||||
|
echo "Error: Config directory $CONFIG_DIR does not exist"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Loop through all config files in the config folder
|
||||||
|
for config_file in "$CONFIG_DIR"/*; do
|
||||||
|
# Skip if no configs found or if it's not a file
|
||||||
|
[ -e "$config_file" ] || continue
|
||||||
|
|
||||||
|
# Get the base name of the config file (without extension)
|
||||||
|
config_name=$(basename "$config_file" .conf)
|
||||||
|
|
||||||
|
echo "Processing configuration: $config_name"
|
||||||
|
|
||||||
|
# Run your Python program with input, config, and output paths
|
||||||
|
python3 "$PYTHON_PROGRAM" "$INPUT" "$config_file" "$OUTPUT"
|
||||||
|
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "Successfully processed: $config_name"
|
||||||
|
else
|
||||||
|
echo "Failed to process: $config_name"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "---"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Batch processing complete!"
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
{
|
{
|
||||||
"file_name":"3t_full_angry",
|
"file_name": "3t_full_angry",
|
||||||
"remove": [],
|
"remove": [
|
||||||
|
"3t_centre",
|
||||||
|
".network_centre"
|
||||||
|
],
|
||||||
"fonts": {
|
"fonts": {
|
||||||
"tienne": "Tienne-Regular.ttf"
|
"tienne": "Tienne-Regular.ttf"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
{
|
{
|
||||||
"file_name":"3t_full",
|
"file_name": "3t_full",
|
||||||
"remove": [
|
"remove": [
|
||||||
"Angry eye brows"],
|
"Angry eye brows",
|
||||||
|
"3t_centre",
|
||||||
|
".network_centre"
|
||||||
|
],
|
||||||
"fonts": {
|
"fonts": {
|
||||||
"tienne": "Tienne-Regular.ttf"
|
"tienne": "Tienne-Regular.ttf"
|
||||||
}
|
}
|
||||||
|
|||||||
11
configs/3t_full_centre.json
Executable file
11
configs/3t_full_centre.json
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"file_name": "3t_full_centre",
|
||||||
|
"remove": [
|
||||||
|
"Angry eye brows",
|
||||||
|
"3t",
|
||||||
|
".network"
|
||||||
|
],
|
||||||
|
"fonts": {
|
||||||
|
"tienne": "Tienne-Regular.ttf"
|
||||||
|
}
|
||||||
|
}
|
||||||
18
configs/3t_full_centre_lanyard.json
Executable file
18
configs/3t_full_centre_lanyard.json
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"file_name": "3t_full_centre_lanyard",
|
||||||
|
"remove": [
|
||||||
|
"Angry eye brows",
|
||||||
|
"3t",
|
||||||
|
".network",
|
||||||
|
"background"
|
||||||
|
],
|
||||||
|
"fonts": {
|
||||||
|
"tienne": "Tienne-Regular.ttf"
|
||||||
|
},
|
||||||
|
"size": {
|
||||||
|
"vx": "0",
|
||||||
|
"vy": "0",
|
||||||
|
"x": "7319.7",
|
||||||
|
"y": "1980.6"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,15 +5,17 @@
|
|||||||
".network",
|
".network",
|
||||||
"background",
|
"background",
|
||||||
"3t",
|
"3t",
|
||||||
"background_purple"
|
"background_purple",
|
||||||
|
"3t_centre",
|
||||||
|
".network_centre"
|
||||||
],
|
],
|
||||||
"fonts": {
|
"fonts": {
|
||||||
"tienne": "Tienne-Regular.ttf"
|
"tienne": "Tienne-Regular.ttf"
|
||||||
},
|
},
|
||||||
"size":{
|
"size": {
|
||||||
"vx":"165",
|
"vx": "165",
|
||||||
"vy":"88",
|
"vy": "88",
|
||||||
"x":"1936.4955",
|
"x": "1936.4955",
|
||||||
"y":"1842.5645"
|
"y": "1842.5645"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5,15 +5,17 @@
|
|||||||
".network",
|
".network",
|
||||||
"background",
|
"background",
|
||||||
"3t",
|
"3t",
|
||||||
"background_green"
|
"background_green",
|
||||||
|
"3t_centre",
|
||||||
|
".network_centre"
|
||||||
],
|
],
|
||||||
"fonts": {
|
"fonts": {
|
||||||
"tienne": "Tienne-Regular.ttf"
|
"tienne": "Tienne-Regular.ttf"
|
||||||
},
|
},
|
||||||
"size":{
|
"size": {
|
||||||
"vx":"165",
|
"vx": "165",
|
||||||
"vy":"88",
|
"vy": "88",
|
||||||
"x":"1936.4955",
|
"x": "1936.4955",
|
||||||
"y":"1842.5645"
|
"y": "1842.5645"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,9 @@
|
|||||||
"remove": [
|
"remove": [
|
||||||
"Angry eye brows",
|
"Angry eye brows",
|
||||||
".network",
|
".network",
|
||||||
"full_background"
|
"full_background",
|
||||||
|
"3t_centre",
|
||||||
|
".network_centre"
|
||||||
],
|
],
|
||||||
"fonts": {
|
"fonts": {
|
||||||
"tienne": "Tienne-Regular.ttf"
|
"tienne": "Tienne-Regular.ttf"
|
||||||
|
|||||||
14
configs/3t_mid_centre.json
Executable file
14
configs/3t_mid_centre.json
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"file_name": "3t_mid_centre",
|
||||||
|
"remove": [
|
||||||
|
"Angry eye brows",
|
||||||
|
".network",
|
||||||
|
"full_background",
|
||||||
|
"3t",
|
||||||
|
".network",
|
||||||
|
".network_centre"
|
||||||
|
],
|
||||||
|
"fonts": {
|
||||||
|
"tienne": "Tienne-Regular.ttf"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user