Combining bits from two images
Posted: 2011-02-22T23:41:29-07:00
Hi all-
I'm trying to use ImageMagick to perform a bit of steganography similar to the tree/cat picture http://en.wikipedia.org/wiki/Steganogra ... ganography. The built-in -stegano command does not seem to do what I want insofar as I'd like to preserve the "private" picture in some semblance of color.
I have two images, both 8-bit color of the same dimensions, and am invoking convert like:
where I'm trying to zero out the two last bits of public.png and or them with the converted two bits of private.png. I'm doing something wrong though, as my steno.png always comes out black.
I'm using ImageMagick 6.6.7-8 on the Mac (from MacPorts) and 6.5.7-8 on Linux.
Might anyone have an idea what I'm doing wrong, and/or how I might achieve a similar effect as the aforementioned tree/cat picture?
Thanks for any info!
I'm trying to use ImageMagick to perform a bit of steganography similar to the tree/cat picture http://en.wikipedia.org/wiki/Steganogra ... ganography. The built-in -stegano command does not seem to do what I want insofar as I'd like to preserve the "private" picture in some semblance of color.
I have two images, both 8-bit color of the same dimensions, and am invoking convert like:
Code: Select all
convert public.png private.png -fx "(u[0] & 0xFC) | (u[1] >> 6)" steno.png
I'm using ImageMagick 6.6.7-8 on the Mac (from MacPorts) and 6.5.7-8 on Linux.
Might anyone have an idea what I'm doing wrong, and/or how I might achieve a similar effect as the aforementioned tree/cat picture?
Thanks for any info!