Crates.io | image-to-ppm |
lib.rs | image-to-ppm |
version | 0.1.1 |
source | src |
created_at | 2024-02-15 06:54:04.47627 |
updated_at | 2024-02-15 08:54:50.471472 |
description | Convert images to PPM (raw pixel format) |
homepage | |
repository | https://github.com/Struck713/image-to-ppm |
max_upload_size | |
id | 1140739 |
size | 19,577 |
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).
You can build the project using the traditional cargo build
command. If you need a release build, you can use cargo build --release
.
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.