array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'gmagick.examples.php', 1 => 'Örnekler', ), 'up' => array ( 0 => 'book.gmagick.php', 1 => 'Gmagick', ), 'prev' => array ( 0 => 'gmagick.constants.php', 1 => 'Öntanımlı Sabitler', ), 'next' => array ( 0 => 'class.gmagick.php', 1 => 'Gmagick', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmagick/examples.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
The following shows some common Gmagick image operations.
Örnek 1 Gmagick Example
<?php
//Instantiate a new Gmagick object
$image = new Gmagick('example.jpg');
//Make thumbnail from image loaded. 0 for either axes preserves aspect ratio
$image->thumbnailimage(100, 0);
//Create a border around the image, then simulate how the image will look like as an oil painting
//Notice the chaining of mutator methods which is supported in gmagick
$image->borderimage("yellow", 8, 8)->oilpaintimage(0.3);
//Write the current image at the current state to a file
$image->write('example_thumbnail.jpg');
?>