NanyangTaiji / FileToMedia

You can convert file into a video or an image and upload it to YouTube or somewhere else to get unlimited storage.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File to Video or Image Converter BETA

You can convert file into a video or an image and upload it to YouTube or somewhere else to get unlimited storage.

  • I converted this text file into the image below:

1. First I read the file and converted into bits.

I converted the file into bits because, if we converted the file into bytes we have to use rgb color for pixels. If any kind of compression is done by uploaded platform the upload file will change.Because of that I used bits

2. Then I assigned the pixel color according to the bit value.

  • If the bit value is 1 I assigned the white color.
  • If the bit value is 0 I assigned the black color.

Here im using image resolution as 600x400 so total amount of pixels are 240000 but the total number of bits that text file contains is less than 240000 so for remaining pixels I assigned the red color.

I'm Implementing this with more features Soon

About

You can convert file into a video or an image and upload it to YouTube or somewhere else to get unlimited storage.


Languages

Language:Java 100.0%