Added thumbnailers for stl & openscad
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
1b3fb64ca8
commit
193335d173
5 changed files with 36 additions and 0 deletions
18
support/openscad-thumbnailer
Normal file
18
support/openscad-thumbnailer
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
SCHEME=${4:-Tomorrow}
|
||||
|
||||
IN_FILE="$1";
|
||||
OUTFILE="$2";
|
||||
SIZE="$3";
|
||||
|
||||
|
||||
|
||||
openscad-nightly \
|
||||
--preview \
|
||||
--colorscheme=$SCHEME \
|
||||
-o "$OUTFILE".png \
|
||||
--imgsize=$SIZE,$SIZE \
|
||||
"$IN_FILE" 2> /dev/null
|
||||
|
||||
mv "$OUTFILE.png" "$OUTFILE"
|
||||
Loading…
Add table
Add a link
Reference in a new issue