9.1 4 Secret Image Steganography [patched]
The 9.1.4 secret image steganography method works by dividing the cover image into 3x3 blocks of pixels. For each block, the 9th bit ( LSB of the 3rd pixel) , 1st bit (LSB of the 1st pixel) and 4th bit (2nd pixel 2nd bit - this varies according to tools) are used to create a new image that contains the hidden data.
# Convert images to RGB cover_image = cover_image.convert('RGB') secret_image = secret_image.convert('RGB') 9.1 4 secret image steganography