kid1110 / pngme

rust implement png-info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pngme

This is my first introductory project in Rust. The project allows adding hidden information to PNG files and can be invoked using the command line.

How to build

git clone <project url>
cd pngme/
cargo build --release

How to use

# get help
./target/release/pngme -h

# encode a message into a png file
# chunk_type would help you find message-data,like hashmap key-value
./target/release/pngme encode ./test.png "chunk_type" "message-data"

#decode and print message-data by message key
./target/release/pngme decode ./test.png "chunk_type"

#remove hidden chunk from png file
 ./target/release/pngme remove ./test.png "chunk_type" 


#print all chunks in png file
./target/release/pngme print ./test.png  

Tips

All chunks in png file including hidden chunks you make would follow png chunks rule.

About

rust implement png-info

License:MIT License


Languages

Language:Rust 100.0%