s2png 0.05 发布,将二进制数据转换成PNG图像
jopen 12年前
s2png将二进制数据转换成有效的PNG图像(如托管在Web上)和任何类型的文件。它支持加密输出。
s2png ("something to png") version 0.05 usage: s2png [-h] [-o filename] [-w width (600) | -s] [-b text] [-p password] [-e | -d] file Store any data in a PNG image. This version can encode files of up to 16777215 bytes. -h display this message and quit -o filename output the converted data (image or binary) to filename -w width set the width of PNG image output (600 by default) -s make the output image roughly square -b text custom banner text ("" for no banner) -p password encrypt/decrypt the output with password using RC4 (Warning: do not use this if you need actual security!) Normally s2png detects which operation to perform by file type. You can circumvent this with the following switches: -e force encoding mode -d force decoding mode

发布说明: 该版本增加了对FreeBSD支持以及PNG输入无效的检测,专用命令行开关来强制编码和解码模式, and an input file size check when encoding (you can currently store files of up to 16777215 bytes inside .png images). It fixes the issue that caused data corruption in the last few bytes of images of certain sizes that didn't have a text banner at the bottom. Code formatting has been improved, and a number of code comments have been added。