diff --git a/checkers/php-igbinary.php b/checkers/php-igbinary.php index 2521fde..f34700a 100644 --- a/checkers/php-igbinary.php +++ b/checkers/php-igbinary.php @@ -3,7 +3,7 @@ include("baseModule.php"); $checker = new BaseModule( "igbinary", - "Module name: Igbinary is a drop in replacement for the standard PHP serializer. Instead of the time and space consuming textual representation used by PHP\'s serialize(), igbinary stores PHP data structures in a compact binary form. Memory savings are significant when using memcached, APCu, or similar memory based storages for serialized data. The typical reduction in storage requirements are around 50%. The exact percentage depends on the data.", + "Igbinary is a drop in replacement for the standard PHP serializer. Instead of the time and space consuming textual representation used by PHP\'s serialize(), igbinary stores PHP data structures in a compact binary form. Memory savings are significant when using memcached, APCu, or similar memory based storages for serialized data. The typical reduction in storage requirements are around 50%. The exact percentage depends on the data.", "Original text: test test "); $checker->printInfo(); diff --git a/checkers/php-imagick.php b/checkers/php-imagick.php new file mode 100644 index 0000000..c3d7dce --- /dev/null +++ b/checkers/php-imagick.php @@ -0,0 +1,42 @@ +printInfo(); + +function imageTricks($pathToImage) { + $im = new Imagick("test.png"); + + $im->thumbnailImage(200, null); + + $im->borderImage(new ImagickPixel("white"), 5, 5); + + $reflection = $im->clone(); + $reflection->flipImage(); + + $gradient = new Imagick(); + + $gradient->newPseudoImage($reflection->getImageWidth() + 10, $reflection->getImageHeight() + 10, "gradient:transparent-black"); + + $reflection->compositeImage($gradient, imagick::COMPOSITE_OVER, 0, 0); + + $reflection->setImageOpacity( 0.3 ); + + $canvas = new Imagick(); + + $width = $im->getImageWidth() + 40; + $height = ($im->getImageHeight() * 2) + 30; + $canvas->newImage($width, $height, new ImagickPixel("black")); + $canvas->setImageFormat("png"); + + $canvas->compositeImage($im, imagick::COMPOSITE_OVER, 20, 10); + $canvas->compositeImage($reflection, imagick::COMPOSITE_OVER, 20, $im->getImageHeight() + 10); + + header("Content-Type: image/png"); + echo $canvas; +} +imageTricks("/home/u525748/php84test.ff14wiki.ru/www/styles/bebs.png"); \ No newline at end of file diff --git a/phpinfo.php b/phpinfo.php index 4e55d95..1e72156 100644 --- a/phpinfo.php +++ b/phpinfo.php @@ -1,2 +1,3 @@