ПримерыПримерыImagick makes image manipulation in PHP extremely easy through an OO interface. Here is a quick example on how to make a thumbnail: Пример #1 Creating a thumbnail in Imagick
<?phpUsing SPL and other OO features supported in Imagick, it can be simple to resize all files in a directory (useful for batch resizing large digital camera images to be web viewable). Here we use resize, as we might want to retain certain meta-data: Пример #2 Make a thumbnail of all JPG files in a directory
<?phpThis is an example of creating a reflection of an image. The reflection is created by flipping the image and overlaying a gradient on it. Then both, the original image and the reflection is overlayed on a canvas. Пример #3 Creating a reflection of an image
<?phpThis example illustrates how to use fill patterns during drawing. Пример #4 Filling text with gradient
<?php |
|
|
| © 2009 Тест скорости интернета | Boont.Ru |