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
  • In lectures we discussed how bitmap images are stored as a grid of pixel values. Each...

    In lectures we discussed how bitmap images are stored as a grid of pixel values. Each pixel has a colour value, and colour can be encoded using the RGB encoding scheme. In lectures we also discussed using the RLE compression technique. Examples of the RLE technique being used to compress text were given. Instead of storing every single character individually, if there is a sequential run of identical characters, data on one character is stored along with a count of...

  • Mountain Paths (Part 1) Objectives 2d arrays Store Use Nested Loops Parallel data structures (i.e...

    Mountain Paths (Part 1) in C++ Objectives 2d arrays Store Use Nested Loops Parallel data structures (i.e. parallel arrays … called multiple arrays in the zyBook) Transform data Read from files Write to files structs Code Requirements Start with this code: mtnpathstart.zip Do not modify the function signatures provided. Do not #include or #include Program Flow Read the data into a 2D array Find min and max elevation to correspond to darkest and brightest color, respectively Compute the shade of...

  • Answer the following multiple choice/True False Questions A) Why are CCD images only approximations to the original scene being imaged by your optics? Circle all that apply a) Each pixel records...

    Answer the following multiple choice/True False Questions A) Why are CCD images only approximations to the original scene being imaged by your optics? Circle all that apply a) Each pixel records only the total number of photons, not where in the pixel they arrived. accurately report the actual counts in each pixel. scene which were not sampled by the CCD close the shutter and the time the A/D converter counts the electrons in the b) No A/D converter (regardless of...

  • C. When transmitting data, is it better to send 4 bits or 40 bits at a time and wh D. How would each of the following appear in hexadecimal: 1/VALUE1 DC H'74 2/VALUE2 DC H'-88 3/VALUE3 DC...

    C. When transmitting data, is it better to send 4 bits or 40 bits at a time and wh D. How would each of the following appear in hexadecimal: 1/VALUE1 DC H'74 2/VALUE2 DC H'-88 3/VALUE3 DC PL4'1534' 4/VALUE4 DC CL3' C. When transmitting data, is it better to send 4 bits or 40 bits at a time and wh D. How would each of the following appear in hexadecimal: 1/VALUE1 DC H'74 2/VALUE2 DC H'-88 3/VALUE3 DC PL4'1534' 4/VALUE4...

  • The ACME Manufacturing Company has hired you to help automate their production assembly line. Cameras have...

    The ACME Manufacturing Company has hired you to help automate their production assembly line. Cameras have been placed above a conveyer belt to enables parts on the belt to be photographed and analyzed. You are to augment the system that has been put in place by writing C code to detect the number of parts on the belt, and the positions of each object. The process by which you will do this is called Connected Component Labeling (CCL). These positions...

  • 2) (25 points) Consider a hypothetical mieroprocessor generating 16-bit addresses with 32-bit data accesses (i.e. each access retrieves 32 bits for each address). a. What is the maximum memory ad...

    2) (25 points) Consider a hypothetical mieroprocessor generating 16-bit addresses with 32-bit data accesses (i.e. each access retrieves 32 bits for each address). a. What is the maximum memory address space (i.e., mmber of addresses) that the processor can access directly? What is the maximum memory capacity (in bytes) for this microprocessor? b. c. What is the last memory address that the CPU can access? Write your answer in decimal. What is the maximum memory address space that the processor...

  • Python Project

    AssignmentBitmap files map three 8-bit (1-byte) color channels per pixel. A pixel is a light-emitting "dot" on your screen. Whenever you buy a new monitor, you will see the pixel configuration by its width and height, such as 1920 x 1080 (1080p) or 3840x2160 (4K). This tells us that we have 1080 rows (height), and each row has 1920 (width) pixels.The bitmap file format is fairly straight forward where we tell the file what our width and height are. When...

  • in java Original: Sound Visualization Write a program that uses StdAudio and Picture to create an...

    in java Original: Sound Visualization Write a program that uses StdAudio and Picture to create an interesting two-dimensional color visualization of a sound file while it is playing. Be creative! Additional Notes: double[] data = StdAudio.read(<filename>); -> Takes a sound file and store it as a 2D array of real numbers. Picture pic = new Picture(300,200); -> Creates a picture 300 pixels wide and 200 pixels high Color c= new Color(<red>,<green>,<blue>); -> Each value of <red>, <green>, <blue> is between...

  • C++ please Possible algorithms – (1) use and modify the algorithm from program 2 if possible;...

    C++ please Possible algorithms – (1) use and modify the algorithm from program 2 if possible; (2) use unique value array; (3) use flag array (flags used to avoid counting a number more than 1 time); (4) compute frequency distribution (use unique and count arrays); (5) use count array to store the frequency of a number. No global variable are permitted in this assignment. Do not change the code provided only write the missing code. Write the missing C++ statements...

  • use MATLAB to upload the following: an image that you want to process (can be taken...

    use MATLAB to upload the following: an image that you want to process (can be taken yourself or downloaded from the internet) a script that processes the image in TWO ways. manipulates the colors averages pixels together Please make sure the script displays the images (like how I did with the 40 and 80 pixel averaging) so I can easily compare them to the original. Make sure to COMMENT your code as well. Homework 13 Please upload the following: an...

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
ADVERTISEMENT