png23d(1)

✨ png23d πŸ’…

okay bestie, welcome to the glow-up station for your flat little PNGs πŸŽ€ this is the manual page for png23d, a General Commands Manual situation, and I'm gonna walk you through it like we're texting at 2am πŸ’–


🌸 NAME 🌸

png23d β€” PNG to 3D file conversion ✨ like… it takes your flat 2D image and makes it three dimensional, no big deal πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

png23d [-V] [-v] [-f finish] [-o type] [-t transparency] [-l
quantisation] [-w width] [-h height] [-d depth] [-O optimisation] [-b
complexity] [-m filename] input output

yes it's a whole lot of flags, don't panic, we're going through every single one 🫢


πŸ’œ DESCRIPTION πŸ’œ

so png23d is a tool that converts a PNG image into a three dimensional file suitable for modelling applications, especially for 3D printers πŸ‘‘ like it's literally giving "my drawing is a real object now" energy πŸ”₯


πŸŽ€ OPTIONS πŸŽ€

  • -V β€” Display the program version and exit. short king, does one thing, slays at it πŸ’…
  • -v β€” Make the program produce verbose output. it will Not stop talking and honestly? relatable 😭
  • -t β€” The colour which is used for transparent output. Valid range is 0 to 255 (that's the default) or 'x' to disable it 🚫
  • -l β€” The number of levels into which the colour-space is divided. Valid range is 1 (the default) to 256. ⚠️ note that as of version 1.0, not all output generators obey this parameter, or they may use a different finish type to the one you specified if the parameter isn't 1 πŸ™ˆ
  • -w β€” The output target width (x dimension). The source PNG width is used by default πŸ¦‹
  • -h β€” The output target height (y dimension). ⚠️ note most outputs will simply ignore this parameter and retain the original image aspect ratio based on the width parameter 😀 (rude but true)
  • -d β€” The output target depth (z dimension). The number of levels specified is used as the default πŸ“
  • -o β€” Specifies the output type 🌈
    • pgm β€” Output a PGM format bitmap. This can be used to verify the level and quantisation parameters are set correctly πŸ”
    • rscad β€” Output a scad format file for use with OpenSCAD. This file will be comprised of a union of cubes. The finish cannot be controlled (it is raw blocks) and the resulting scad object may be very complex πŸ’€
    • scad β€” Output a scad format file for use with OpenSCAD. This file will be comprised of a single polyhedron mesh. For larger images this polygon will be exceptionally complex and may contain many thousands of triangles 😭
    • stl β€” Output a binary stereolithography format file. These files are comprised of simple triangles, the output can be directly used by several 3D printing systems. The generated meshes are a convex manifold but are not simplified 🧊
    • astl β€” Same as the stl entry but generates a textural file instead of binary ✨
  • -f β€” Specifies the finish of the output 3D mesh. The default is cube which keeps all the cube faces 🧊. The smooth option uses a marching square algotithm to give sloped edges and reduces jaggies 🌊. The rect finish is for the rscad output type only 🚧. The surface type generates a simple heightmap surface πŸ”οΈ
  • -O β€” Specify the mesh optimisation level of 0, 1 (the default) or 2 βš™οΈ
    • 0 β€” No mesh optimisation will be performed. This will be fast to execute but the resulting mesh will be exceptionally complex and will almost certainly require additional processing in another tool such as meshlab πŸ’€
    • 1 β€” Mesh simplification using edge removal algorithm will be performed. This process is relatively fast and the result maintains the exact blocky geometry from the generation process. Typically this produces reasonable results for non complex extrusions πŸ‘‘
    • 2 β€” Mesh simplification using quadratic surface removal. This has not yet been implemented! Use a tool such as meshlab if you require this type of simplification 🚫
  • -b β€” The bloom filter complexity which controls the size of the filter and number of iterations(functions) used by vertex indexing as part of the mesh simplification process. Valid range is 0 to 16 with a default of 2. Most users will never need to alter this parameter πŸ™ˆ. It is useful only if they are experiencing a high filter miss rate on exceptionally large meshes with 10 million facets or more) 🀯
  • -m β€” The filename to save the mesh optimisation debug output to. This is a generated html file which graphically shows each stage of the mesh simplification πŸ”¬. This is useful only for debugging purposes and for images above a few hundred facets the output can run to many hundreds of megabytes πŸ’€
  • input β€” Specifies the source PNG file to convert from πŸ–ΌοΈ
  • output β€” Specifies the output file πŸ“

🧚 EXAMPLES 🧚

okay so to convert from foo.png to foo.scad in scad polyhedron output format:

png23d -o pscad foo.png foo.scad

to convert from foo.png to foo.stl in binary STL output format with smooth finish:

png23d -f smooth -o stl foo.png foo.scad

to convert from foo.png to foo.stl in ascii STL output format with smooth finish and 50 unit output width:

png23d -f smooth -o astl -w 50 foo.png foo.scad

πŸ‘‘ AUTHOR πŸ‘‘

Copyright Β© 2011 Vincent Sanders πŸ’œ

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

bestie that is the whole license, every word, do not skip it, it's giving ✨legal icon✨ πŸ“œ

okay that's the whole page!! πŸŽ‰ this one is from png23d(1), dated 18th October 2011 β€” yes she's an elder but she still eats πŸ’… go make something 3D, ily, byeee πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from