Simple PHP class for aging your photos.
Requirements:
- PHP + gd library
- load a photo
- crop a photo to 650×650px
- play with RGB palette
- add a layer (texture)
- save 'new' aged photo
<?php
include('imageClass.php');
$imgobj = new Image(); // create a new object
$imgobj->load_image("image_orig.jpg"); // load image
$imgobj->crop(); // crop image
$imgobj->colorize(4); // colorize image (RGB modification) (predefined values 1-4)
$imgobj->layer(4,30); // put a layer on image (predefined 1-4, percentage)
$imgobj->save_image("foto.jpg"); // save aged image
This is an original image (image_orig.jpg)
$imgobj->colorize(2);
$imgobj->layer(2,20);
should create a photo like this one:
$imgobj->colorize(4);
$imgobj->layer(4,30);
gives you that effect:
enjoy!