- Modifications to compile ImageMagick
This commit is contained in:
parent
615ec83706
commit
83522c16c3
3442 changed files with 57 additions and 412926 deletions
26
ImageMagick/PerlMagick/demo/steganography.pl
Normal file
26
ImageMagick/PerlMagick/demo/steganography.pl
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use Image::Magick;
|
||||
|
||||
#
|
||||
# Hide an image within an image
|
||||
#
|
||||
$watermark=Image::Magick->new;
|
||||
$watermark->ReadImage('smile.gif');
|
||||
($width, $height)=$watermark->Get('width','height');
|
||||
#
|
||||
# Hide image in image.
|
||||
#
|
||||
$image=Image::Magick->new;
|
||||
$image->ReadImage('model.gif');
|
||||
$image->SteganoImage(image=>$watermark,offset=>91);
|
||||
$image->Write('model.png');
|
||||
$image->Write('win:');
|
||||
#
|
||||
# Extract image from image.
|
||||
#
|
||||
$size="$width" . "x" . "$height" . "+91";
|
||||
$stegano=Image::Magick->new(size=>$size);
|
||||
$stegano->ReadImage('stegano:model.png');
|
||||
$stegano->Write('stegano.gif');
|
||||
$stegano->Write('win:');
|
||||
Loading…
Add table
Add a link
Reference in a new issue