Page 1 of 1

ImageMagick on php 7.2.18 64bit

PostPosted: 23. May 2019 18:28
by SystemL
Hi , i'am luigi from italy, my installed library imageMagick in xampp for php 7.2.18 64bit.

Me result

Image

Idea error?

Image

thank you!.

Re: ImageMagick on php 7.2.18 64bit

PostPosted: 23. May 2019 18:51
by JJ_Tagy
I don't see any error, just a warning of version. What happens when you try a filter on an image?

Re: ImageMagick on php 7.2.18 64bit

PostPosted: 23. May 2019 20:03
by SystemL
ok, my test code:
Code: Select all
<?php
 
/*
   A simple example demonstrate thumbnail creation.
*/
 
/* Create the Imagick object */
$im = new Imagick();
 
/* Read the image file */
$im->readImage( '/www/prove/20180706_182342.jpg' );
 
/* Thumbnail the image ( width 100, preserve dimensions ) */
$im->thumbnailImage( 600, null );
 
/* Write the thumbail to disk */
$im->writeImage( '/www/prove/20180706_182342_test.jpg' );
 
/* Free resources associated to the Imagick object */
$im->destroy();
 
?>


done.
So it works right?

Re: ImageMagick on php 7.2.18 64bit

PostPosted: 23. May 2019 20:11
by SystemL
ok:
Code: Select all
<?php 
// require_once('path/vendor/autoload.php'); 
   
// Create an Imagick Object
$imagick = new Imagick(
'/www/prove/20180706_182342.jpg');
   
// vignetteImage Function 
$imagick->negateImage('true');
   
// Image Header
header("Content-Type: image/jpg");
 
// Display image
echo $imagick->getImageBlob();
?>


solved problem..

how to hide error in console php terminal ?

add line php.ini?? How to write key and value for php.ini
https://www.php.net/manual/en/imagick.configuration.php#ini.imagick.skip-version-check

Re: ImageMagick on php 7.2.18 64bit

PostPosted: 23. May 2019 20:51
by SystemL
ok , problem solved my add line php.ini:
Code: Select all
[Imagick]
extension=php_imagick.dll
imagick.skip_version_check = On