GithubHelp home page GithubHelp logo

py_imagefileconverter's Introduction

A python image<->file converter

idea source

我用python将二进制数据转化为图像,每个像素点可以表示3个字节,再将图像外围增加宽度为1的黑色边框,外面再增加宽度为1像素的白色边框,作为图像边界的标识符。

This is a file to image and image to file converter that can be used to download code using screen capture when you work on remote desktop, from which you are forbidden to download file directly.

File will be read byte by byte and each byte will be stored into the r,g,b values of a pixel. Every pixel expresses one byte of file data(not three). Beyond the data area, which is a square there is a 1-pixel-length black boundary and a 1-pixel-length while boundray to identify the starting position of the data area.


  1. Run on server side:
    python encode.py filename image.png

  2. Do screen capture to store the image from server (Don't scale the image, keep it 100% size) image

  3. Run on client:
    python decode.py image.png filename

py_imagefileconverter's People

Contributors

lanyusea avatar

Stargazers

 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.