Question

Would it be possible to hide data in the last bits of each pixel of a...

Would it be possible to hide data in the last bits of each pixel of a GIF image by converting it to an array of RGB pixel values, changing the pixel values accordingly, and then converting the image back to GIF? Explain.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The best approch to do this is is via the load() method in python which returns a pixel access object and this can be manipulate like an array:

from PIL import Image
ip = Image.open("xyz.png") #here there can be many different formats.
pix = ip.load()
print ip.size #you will have to find the height and width of the image
print pix[x,y] #now you have to get RGBA Value of the a pixel of an image
pix[x,y] = value # Also you have to Set the RGBA Value of the image (tuple)
ip.save("pqr.png") # now Save your modified pixels as png

Add a comment
Know the answer?
Add Answer to:
Would it be possible to hide data in the last bits of each pixel of a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT