BNI2TGA(1)

πŸ’– BNI2TGA(1) β€” the bnetd user's manual, bestie edition πŸ’–

okay so real talk, this is bni2tga from the BNETD User's Manual and it is genuinely one of the most lowkey useful little gremlins in the whole toolbox. let's get into it πŸ¦‹


✨ NAME ✨

bni2tga β€” convert a Battle.net icon file to a Targa file

like. that's it. that's the whole job. and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

bni2tga [options] [--] [bnifile [tgafile]]

πŸŽ€ DESCRIPTION πŸŽ€

bni2tga is a simple program which will convert the icons in a Battle.net icon file into a TGA file with the icons arranged vertically. no cap, it just stacks them. one on top of the other. vertical. iconic behaviour honestly πŸ‘‘

the specific variant of TGA that is used will depend on the input file, but typically it will be a 28 pixel wide, true-color, 24bit, run-length encoded image with no attributes. so if you were picturing that exact vibe? you were right. 🫢

now for the part where you point at files:

  • if bnifile is not specified, or is specified as -, then standard input will be used. πŸ™ˆ
  • if tgafile is not specified, or is specified as -, then standard output will be used. ✨

so like, you can literally pipe this thing. main character energy fr fr.


πŸ’… OPTIONS πŸ’…

  • -h, --help, --usage β€” prints usage information and exits. your girl is just telling you how to use her. respect. πŸ’–
  • -v, --version β€” prints its version number and exits. she's announcing herself. slay. ⭐
  • -- β€” signals the end of options. any further arguments will be treated as filenames even if they begin with a -. so if your file is named something cursed starting with a dash, this is your moment. 🌈

πŸ“Œ NOTES πŸ“Œ

the current version is available with the bnetd distribution at:

http://www.bnetd.org/

go get it bestie 🧚


πŸ’€ BUGS πŸ’€

okay so listen. the purpose of some of the fields in the BNI format are not known. like. nobody knows. it's giving mystery. πŸ•΅οΈβ€β™€οΈ

also: only true-color formats are currently supported. so if you were hoping for something else... not today. 😭


πŸ”₯ SEE ALSO πŸ”₯

bnetd(1), bnibuild(1), bniextract(1), bnilist(1), tgainfo(1)

the whole friend group. obsessed. πŸ‘‘


πŸ‘‘ AUTHORS πŸ‘‘

Marco Ziech (mmz@gmx.net) and Ross Combs (ross@bnetd.org)


and that's the whole page!! this beauty ships as part of the BNETD release, dated 6 November, 2000, and it lives in the BNETD User's Manual. ty for coming to my ted talk, go convert some icons, mwah πŸ’–βœ¨πŸŽ€