ppmtoacad

Convert a PPM image to an AutoCAD database or slide. More information: <https://netpbm.sourceforge.net/doc/ppmtoacad.html>.

Install

All systems
curl cmd.cat/ppmtoacad.sh
Debian Debian
apt-get install netpbm
Ubuntu
apt-get install netpbm
Arch Arch Linux
pacman -S netpbm
image/svg+xml Kali Linux
apt-get install netpbm
CentOS
yum install netpbm-progs
Fedora
dnf install netpbm-progs
Windows (WSL2)
sudo apt-get update sudo apt-get install netpbm
OS X
brew install netpbm
Raspbian
apt-get install netpbm

Convert a PPM image to an AutoCAD database or slide. More information: <https://netpbm.sourceforge.net/doc/ppmtoacad.html>.

  • Convert a PPM image to an AutoCAD slide:
    ppmtoacad path/to/file.ppm > path/to/file.acad
  • Convert a PPM image to an AutoCAD binary database import file:
    ppmtoacad -dxb path/to/file.ppm > path/to/file.dxb
  • Restrict the colors in the output to 8 RGB shades:
    ppmtoacad -8 path/to/file.ppm > path/to/file.dxb

© tl;dr; authors and contributors