Code Monkey home page Code Monkey logo

beamp's Introduction

beamp

Simple Node.js script that converts your data into a .bmp image by taking the data and prepending it with a BMP format header. For the most part, the output looks like noise, but you can get particularly interesting results with other image files, and makes for a great source of noise or simple obfuscation (you can still open the BMP files and read the original contents in a hex editor).

Using it

Want to use it? You'll need Node.js and at least version 0.12. Once you have it, you can clone the repo then run:

cd path/to/repo
npm install
node ./index.js --file input.dat --out out.bmp

Options:

param function
f, file input file path
o, out output path
w, width width - height is determined automatically based on width and file size, defaults to 100

Global install options coming soon.

Examples

package.json

package.json from this repo! It came out at 10x12, but I upscaled it to 400x500 so it's more visible (TIP: if you're using Photoshop to size your images up, you can use the Nearest Neighbour resample option to preserve hard edges).

Command:

node ./index.js --file package.json --out package.json.bmp -w 10

Result:

EVE_Online_Installer_852809.exe

4,632 kb file. Created a big field of noise. Not sure what the black glitches are towards the bottom, but they look cool!

node ./index.js --file EVE_Online_Installer_852809.exe --out eve.bmp -w 1200

657kb PNG

You get the idea for the command. Here's what a random image PNG looks like:

10.6 MB mpeg file

Loaded a large MPEG. Needed to downsize it a bit so it would fit on imgur.

beamp's People

Contributors

wayspurrchen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.