ImageMagick on php 7.2.18 64bit

Problems with the Windows version of XAMPP, questions, comments, and anything related.

ImageMagick on php 7.2.18 64bit

Postby SystemL » 23. May 2019 18:28

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!.
SystemL
 
Posts: 8
Joined: 23. November 2016 16:43
XAMPP version: 3.2.2
Operating System: Windows 10 64 bit

Re: ImageMagick on php 7.2.18 64bit

Postby JJ_Tagy » 23. May 2019 18:51

I don't see any error, just a warning of version. What happens when you try a filter on an image?
JJ_Tagy
 
Posts: 757
Joined: 30. January 2012 13:44
Operating System: Windows 10 Pro x64

Re: ImageMagick on php 7.2.18 64bit

Postby SystemL » 23. May 2019 20:03

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?
SystemL
 
Posts: 8
Joined: 23. November 2016 16:43
XAMPP version: 3.2.2
Operating System: Windows 10 64 bit

Re: ImageMagick on php 7.2.18 64bit

Postby SystemL » 23. May 2019 20:11

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
SystemL
 
Posts: 8
Joined: 23. November 2016 16:43
XAMPP version: 3.2.2
Operating System: Windows 10 64 bit

Re: ImageMagick on php 7.2.18 64bit

Postby SystemL » 23. May 2019 20:51

ok , problem solved my add line php.ini:
Code: Select all
[Imagick]
extension=php_imagick.dll
imagick.skip_version_check = On
SystemL
 
Posts: 8
Joined: 23. November 2016 16:43
XAMPP version: 3.2.2
Operating System: Windows 10 64 bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 55 guests