Git Product home page Git Product logo

image-stego-tool's Introduction

Hey there! ๐Ÿ‘‹

Programming Languages

NodeJS JavaScript HTML5 CSS3 Python C++ Java Markdown Shell Script

Frameworks and libraries

React Express.js Bootstrap jQuery Django Flask OpenCV

Design

Adobe Adobe XD Adobe Illustrator Figma Canva Blender

Saas/Cloud Hosting

AWS Google Cloud Heroku DigitalOcean Firebase

IDEs

Visual Studio Code Xcode Vim PyCharm

Databases

MySQL MongoDB SQLite

Version Control

Git Bitbucket

image-stego-tool's People

Contributors

djrobin17 avatar mnkagiri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

image-stego-tool's Issues

Bug in code (for Python 3) leads to obvious distortion in images

This might be a python 2 to python 3 thing, but there is a bug in the code that leads to really obviously distorted images (especially obvious where there is a dark background to the image).

Because bin() does not pad with leading zeroes, for small pixel values, you aren't changing only the LSB
e.g. take a pixel value of 17 - the output of bin(17) is 0b10001, and when you take the [2:9] slice of this you get 10001. The new LSB is added to the end of this, so you end up with 100010 or 100011 - which is 34 or 35 so very different from 17!

I'm sure there is a simpler solution, but the below code works :-)

array[p][q] = int(bin(array[p][q])[2:].zfill(8)[:7] + b_message[index], 2)

i.e. convert to binary, remove 0b from start, pad with leading zeroes, then remove LSB

Thanks for the code - was very useful - even if it did drive me slightly nuts debugging my weirdly striped images :-)

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.