Update render to new design. Add a script that will output the render from openscad and scale/crop with imagemagick.

This commit is contained in:
Matt McWilliams 2024-02-24 15:46:28 +01:00
parent 2ea7cb2e8d
commit d5cb055d2c
4 changed files with 11 additions and 0 deletions

BIN
img/contact_printer.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

11
scripts/img.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
WIDTH=2400
HEIGHT=2000
SCHEME=DeepOcean
IMG=img/contact_printer.png
# setting PART equal to a non-existent module will render the debug layout
openscad -o ${IMG} --colorscheme ${SCHEME} --imgsize ${WIDTH},${HEIGHT} -D "PART=\"DEBUGxxxxxxx\"" scad/contact_printer.scad
convert ${IMG} -resize 1200x1000 -gravity center -extent 1000x700 ${IMG}