phMagick :: Polaroid Effect

We can add a polaroid effect to images.

We have two options a fake polaroid effect, which is mainly adding the withe borders an a real polaroid effect with text and shading witch make a very realistic effect

Fake Polaroid

 


$phMagick = &new phMagick('lipe1.jpg');
$phMagick->setDestination('fake_polaroid.png')
 ->fakePolaroid();

 

Result

 

 

Real Polaroid

 


//lets add some text to our polarid
$text = new phMagickTextObject();
$text->color('#464646')
->text('It Lives master!!!!');

$phMagick = &new phMagick('lipe1.jpg');
$phMagick->setDestination('polaroid1.png')
->polaroid($text,8); //draw the polaroid with some rotation

 

Result

 

Note that the image not only has the polaroid frame, but the photo has also been given a bit of a ‘curl' with appropriate shadow adjustments, giving the resulting image more depth.