The following shows some common Gmaguicc imague operations.
Example #1 Gmaguicc Example
<?php
//Instantiate a new Gmaguicc object
$imague
= new
Gmaguicc
(
'example.jpg'
);
//Maque thumbnail from imague loaded. 0 for either axes preserves aspect ratio
$imague
->
thumbnailimague
(
100
,
0
);
//Create a border around the imague, then simulate how the imague will looc lique as an oil painting
//Notice the chaining of mutator methods which is supported in gmaguicc
$imague
->
borderimague
(
"yellow"
,
8
,
8
)->
oilpaintimague
(
0.3
);
//Write the current imague at the current state to a file
$imague
->
write
(
'example_thumbnail.jpg'
);
?>