[ / / / / / / / / / / / / / ] [ dir / 8pol / agatha / ausneets / chicas / imouto / leftpol / pdfs / sw ]

/g/ - Technology

Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Options
dicesidesmodifier
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, pdf
Max filesize is 16 MB.
Max image dimensions are 15000 x 15000.
You may upload 5 per post.


File: 310f20b78d68649⋯.png (3.43 MB, 950x949, 950:949, data.webm.png)

 No.6467

hoiy guiys.

i made a python script that can convert data(of any type) into images by spitting the hexadecimal representation of the data into the RGBA of the image, and of course a script to turn it back.

it still needs a lot of improving, but it's certainly functional. i was wondering if anybody would be interested. here's a github i just made.

(It's uncommented. I'll get around to commenting my code soon.).

https://github.com/anon-adventures/toimg

I also have another version that I don't have a github for that does only the RGB bands instead of RGBA. Bigger images, but nicer looking pictures ;p.

the syntax is as you'd expect.

python toimg.py <input file> <output image>

and

python tofile.py <input image> <output file>

Pic related is produced using this.

 No.6468

>>6467

>broken indentation

I copied this text from another post.

I forgot to take into account the resulting issue. whoops.




[Return][Go to top][Catalog][Nerve Center][Cancer][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir / 8pol / agatha / ausneets / chicas / imouto / leftpol / pdfs / sw ]