/imagick/tests/ |
H A D | 006_cropthumbnail.phpt | 8 $im = new Imagick("magick:rose"); 9 $im->cropThumbnailImage(200, 200); 10 var_dump($im->getImageGeometry()); 12 $im = new Imagick("magick:rose"); 13 $im->cropThumbnailImage(170, 120); 14 var_dump($im->getImageGeometry()); 16 $im = new Imagick("magick:rose"); 17 $im->cropThumbnailImage(50, 50); 20 $im = new Imagick("magick:rose"); 21 $im->cropThumbnailImage(60, 120); [all …]
|
H A D | 017-clear-destroy.phpt | 8 $im = new Imagick (); 9 $im->clear (); 10 $im->destroy (); 12 $im = new ImagickDraw (); 13 $im->clear (); 14 $im->destroy (); 16 $im = new ImagickPixel (); 17 $im->clear (); 18 $im->destroy (); 23 $im->clear (); [all …]
|
H A D | 008_newpseudoimage.phpt | 8 $im = new Imagick(); 9 $im->newPseudoImage(100, 100, "XC:red"); 10 var_dump($im->getImageGeometry()); 12 $im->newPseudoImage(10, 10, "magick:logo"); 13 var_dump($im->getImageGeometry()); 15 $im->readImage("magick:logo"); 16 var_dump($im->getImageGeometry()); 18 $im->newPseudoImage(10, 10, "rose:"); 19 var_dump($im->getImageGeometry()); 22 $im->newPseudoImage(10, 10, "png:"); [all …]
|
H A D | 246_antialias_image.phpt | 8 $im = new Imagick(); 9 $im->newPseudoImage(10, 10, "magick:logo"); 11 var_export($im->getAntiAlias()); 15 $im->setAntiAlias(false); 16 var_export($im->getAntiAlias()); 20 $im->setAntiAlias(true); 21 var_export($im->getAntiAlias());
|
H A D | 009_properties.phpt | 11 $im = new Imagick(); 12 $im->newPseudoImage(100, 100, "XC:red"); 13 $im->setImageFormat("png"); 15 echo $im->width . "x" . $im->height . "\n"; 16 echo $im->format;
|
H A D | 022-writeimagefileformat.phpt | 16 $im->writeImage (JPEG_FILE); 17 $im->clear (); 24 $im->readImage (JPEG_FILE); 25 $im->setImageFormat ('png'); 26 $im->writeImageFile ($fp); 27 $im->clear (); 37 $im->readImage (JPEG_FILE); 39 $im->writeImageFile ($fp); 40 $im->clear (); 49 $im->readImage (JPEG_FILE); [all …]
|
H A D | 239_Tutorial_gradientReflection_basic.phpt | 10 $im = new \Imagick(); 11 $im->newPseudoImage(640, 480, "magick:logo"); 13 $reflection = clone $im; 17 $reflection->cropImage($im->getImageWidth(), $im->getImageHeight() * 0.75, 0, 0); 34 …$canvas->newImage($im->getImageWidth(), $im->getImageHeight() * 1.75, new \ImagickPixel('rgba(255,… 35 $canvas->compositeImage($im, \Imagick::COMPOSITE_BLEND, 0, 0); 37 $canvas->compositeImage($reflection, \Imagick::COMPOSITE_BLEND, 0, $im->getImageHeight());
|
H A D | 012-clone-separation.phpt | 7 $im = new Imagick(); 8 $im->newImage(100, 100, new ImagickPixel("white")); 10 $new = clone $im; 12 var_dump($im->width, $new->width); 14 $new2 = $im->clone(); 16 var_dump($im->width, $new2->width);
|
H A D | bug64015.phpt | 7 $im = new Imagick(dirname(__FILE__) . '/php.gif'); 8 var_dump($im->getImageLength()); 12 var_dump($im->getImageLength()); 15 $cloned_im = clone $im; 16 var_dump($im->getImageLength());
|
H A D | 005_bestfit.phpt | 8 $im = new Imagick(); 9 $im->newImage(50, 100, 'white'); 11 $im->thumbnailImage(100, 50, true); 12 var_dump($im->getImageGeometry());
|
H A D | 263_autoGammaImage.phpt | 11 $im = new Imagick("magick:logo"); 12 $im->autoGammaImage(); 15 $im = new Imagick("magick:logo"); 16 $im->autoGammaImage(\Imagick::CHANNEL_RED);
|
H A D | 003_cast_color_opacity.phpt | 10 $im = new Imagick(); 11 $im->newImage(100, 100, "red"); 12 $im->tintImage("red", "gray(50%)"); 19 $im = new Imagick(); 22 $im->newImage(100, 100, $pixel); 23 $im->tintImage($pixel, $strengthPixel);
|
H A D | 015-imagickdrawsetresolution.phpt | 11 $im = new Imagick(); 12 $im->newImage(1000,1000, "white","png"); 19 $small = $im->queryFontMetrics($draw, "Hello World"); 22 $large = $im->queryFontMetrics($draw, "Hello World"); 29 $oneLine = $im->queryFontMetrics($draw, "Hello Hello"); 30 $forceOneLine = $im->queryFontMetrics($draw, "Hello \nHello", false); 33 $forceMultiLine = $im->queryFontMetrics($draw, "Hello \nHello", true); 34 $guessLine = $im->queryFontMetrics($draw, "Hello\nHello");
|
H A D | 007_thumbnail_fill.phpt | 16 $im = new Imagick("magick:logo"); 17 $im->setImageBackgroundColor("pink"); 18 $im->thumbnailImage(200, 200, true, true); 20 $color = $im->getImagePixelColor(5, 5); 26 $color = $im->getImagePixelColor(199, 5);
|
H A D | 276_Imagick_artifacts.phpt | 15 $im = new IMagick(__DIR__ . '/php.gif'); 18 var_dump($im->setImageArtifact('compose:args', '1,0,-0.5,0.5')); 20 var_dump($im->getImageArtifact('compose:args')); 21 var_dump($im->deleteImageArtifact('compose:args'));
|
H A D | 018-clone-length.phpt | 17 $im = new Imagick ('magick:rose'); 18 $im->setImageFormat ('png'); 19 if ($im->getImageLength()) { 26 $cloned = clone $im;
|
H A D | 272_imagick_identifyimagetype.phpt | 13 $im = new Imagick(); 14 $im->newPseudoImage(100, 100, "magick:logo"); 16 $type = $im->identifyImageType();
|
H A D | 016-static-methods.phpt | 10 $im = new Imagick (); 11 echo gettype ($im->queryFormats ()) . PHP_EOL; 14 echo gettype ($im->queryFonts ()) . PHP_EOL;
|
H A D | 004_clone.phpt | 10 $im = new Imagick(); 11 $im->newImage(100, 100, new ImagickPixel("white")); 12 $new = clone $im;
|
H A D | 010_importimagepixels.phpt | 29 $im = new Imagick(); 30 $im->newImage($width, $height, 'gray'); 34 $im->importImagePixels(0, 0, $width, $height, "RGB", Imagick::PIXEL_CHAR, $pixels); 37 var_dump($im->getImageGeometry());
|
H A D | 278_Imagick_optimaze_gif.phpt | 68 function optimizeGif($im) { 69 $im = $im->coalesceImages(); 70 $im->optimizeImageLayers(); 71 $im->optimizeimagetransparency();
|
H A D | 288_imagick_prevent_zero_size_images.phpt | 13 $im = new Imagick(); 15 $im->newPseudoImage(0, 100, "magick:logo"); 16 $im->newPseudoImage(100, 0, "magick:logo"); 19 $im->newPseudoImage(0, 100, "magick:logo");
|
/imagick/examples/ |
H A D | houghline.php | 8 $im = new Imagick(); variable 11 $im->readImage( '/tmp/test.png' ); 14 $im->houghLineImage( 9, 9, 40 ); 17 $im->writeImage( '/tmp/hough_test.png' ); 20 $im->destroy();
|
H A D | thumbnail.php | 8 $im = new Imagick(); variable 11 $im->readImage( '/tmp/test.png' ); 14 $im->thumbnailImage( 100, null ); 17 $im->writeImage( '/tmp/th_test.png' ); 20 $im->destroy();
|
/imagick/docker/fedora/ |
H A D | 003_cast_color_opacity.php | 5 $im = new Imagick(); variable 6 $im->newImage(100, 100, "red"); 7 $im->tintImage("red", "gray(50%)"); 14 $im = new Imagick(); variable 17 $im->newImage(100, 100, $pixel); 18 $im->tintImage($pixel, $strengthPixel);
|