ICNS2PNG(1)

✨ icns2png β€” the manual, but make it cute ✨

okay so bestie, welcome to icns2png, a little User Commands icon-gremlin that lives in your terminal and is so good at its one job πŸ’…


🌸 NAME 🌸

icns2png β€” convert Mac OS .icns files to .png images πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

icns2png [-x|-l] [options] [file ... ]

that's it. that's the whole vibe. -x or -l, some options, some files, go off πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

icns2png extracts images out of mac .icns files and exports them to png format. that's literally it. it takes the icon soup and serves you individual pngs, plated, garnished, slay ✨


πŸ’… OPTIONS πŸ’…

  • -l, --list β€” List the contents of one or more icns images. like a little window-shopping trip for icons πŸ›οΈ
  • -x, --extract β€” Extract one or more icons to png images. the main character option fr fr
  • -o, --output β€” Where to place extracted files. If not specified, icons will be extracted to the same path as the source file. no -o? they just chill next to the original, home sweet home 🏑
  • -d, --depth β€” Sets the pixel depth of the icons to extract. (1,4,8,32) β€” yes those are the only depths, don't be extra
  • -s, --size β€” Sets the width and height of the icons to extract. (16,48,etc) β€” Sizes 16x12, 16x16, 32x32, 48x48, 128x128, etc. are also valid. so you can go square or go rectangle, your call πŸ’β€β™€οΈ
  • -h, --help β€” Displays this help message. bestie needs a refresher sometimes 🫢
  • -v, --version β€” Displays the version information. proof it's the real one, no cap 🧚

🌈 EXAMPLES 🌈

icns2png -x anicon.icns            # Extract all icon found in
anicon.icns
icns2png -x -s 48 anicon.icns      # Extract all 48x48 32-bit icons
icns2png -x -s 32 -d 1 anicon.icns # Extract all 32x32 1-bit icons
icns2png -l anicon.icns            # Lists the icons contained in
anicon.icns

look at these little one-liners. absolute icons. not me being obsessed with icns2png -x -s 32 -d 1 anicon.icns 😭

heads up: the comments in the examples wrap onto the next line in the original β€” the commands are the first part of each line, the # bits are the commentary. keep them exactly as written and you're golden ⭐

πŸ‘‘ AUTHOR πŸ‘‘

Written by Mathew Eis πŸŽ€


Copyright Β© 2001-2008 Mathew Eis

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (fr fr, no warranty, read the source if you wanna know the deets πŸ”₯)


and that's the whole page, bestie πŸ’– this was icns2png version 1.5, from March 2008, a User Commands classic. go extract some icons, you got this πŸ¦‹βœ¨πŸŽ€