safety, glbs now have no sanitizing of file names; png & webP conversions work

This commit is contained in:
John Poole 2026-03-05 13:53:27 -08:00
commit 8181c9b2d4
11 changed files with 267 additions and 878 deletions

View file

@ -19,6 +19,8 @@ for this exercise, create a soft link within glbs to just one file, we're only g
ln -s ../../'[o]_stealthburner_LED_carrier.stl.glb' .
Note: remember to unlink this test file after this exercise so you do not pollute a future attempt to mass produce PNGs
Example:
~/work/Voron/voronstl/web/batch_glb_png/glbs $ ln -s ../../'[o]_stealthburner_LED_carrier.stl.glb' .
@ -46,6 +48,11 @@ Example:
Result: a PNG 1227 × 994:
![]([o]_stealthburner_LED_carrier.stl.png)
Cleanup the link you created:
cd web/batch_glb_png/glbs
unlink '[o]_stealthburner_LED_carrier.stl.glb'
# Conclusion
Using the steps above, you created a single PNG from a glb.
@ -53,4 +60,6 @@ The next step is to fill the glbs directory with links to the glbs perviously ge
node batch_render.js [your PNG specification, if you want]
that will create a PNG for every glb.
that will create a PNG for every glb.
Note: the names of the links created by the ```create_glb_links.sh``` has the files path built in to assure uniqueness and provide a provenance. Since these links are used only by the glb->PNG process, I've gone the extra step of including the original project and directory path in the file name to help identify the file. The PNGs will just use the file's name and not the additional prepended path characters.