#png #convert-images #image #ppm #jpeg #raw #pixel-format

app image-to-ppm

Convert images to PPM (raw pixel format)

2 releases

0.1.1 Feb 15, 2024
0.1.0 Feb 15, 2024

#413 in Images

30 downloads per month

GPL-3.0-only

7KB
63 lines

image-to-ppm

PPM is like the WAV file of images. It's just raw pixel data. So I wrote this Rust program to make images worse by converting them to PPM.

Currently, this program can convert JPG and PNG images to PPM.

You can install the program using Cargo, simply run: cargo install image-to-ppm and then you can use the command from your command line (assuming your Rust installation is correctly configured).

Building

You can build the project using the traditional cargo build command. If you need a release build, you can use cargo build --release.

Usage

To use it, simply run: image-to-ppm <input file> <output file>

  • <input file> will accept any .jpg or .png image.
  • <output file> will accept any file that ends in .ppm.

You can use image-to-ppm --help to see this information in the shell.

Dependencies

~15MB
~95K SLoC