Error on step 5 (image library testing) Error on step 5 (image library testing)
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Error on step 5 (image library testing)

Started by N2GetherNow, November 18, 2023, 10:01:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

N2GetherNow

Hello,
I'm getting an error "There was an error in one or more of the tests, please make sure you selected the appropriate Image Processing Package and it is configured correctly!" when trying Imagick, with GD have no problems, but I want to use Imagick since I'm trying for a few days to make it work and finally did.
PHP Version 8.1.25, on Windows 10, x64 22H2.

I'm attaching screenshots showing that the installer detects both Imagick and GD and also the respective info from a phpinfo() output.

BR,
Petar


N2GetherNow

Okay, I was able to confirm that the ImageMagick is installed, properly configured and it's actually working:

header('Content-type: image/jpeg');

$image = new Imagick('F:/Web/Private/beforeAfter.jpg');

// If 0 is provided as a width or height parameter,
// aspect ratio is maintained
$image->thumbnailImage(100, 0);

echo $image;


This successfully creates a 100px wide thumbnail.

So I guess the question is really how to set the proper path to the command in step 4?

ron4mac

It might be helpful to install the imagemagick package to see if that makes a difference.

N2GetherNow


N2GetherNow

I have installed the CPG and tried again to change the library through the settings. Still, only gd2 is working.
Again I have a PHP file which kinda proves that ImageMagick works (see attached).


<?php
header
('Content-type: image/jpeg');

$image = new Imagick('F:/Web/Private/beforeAfter.jpg');

$image->thumbnailImage(750);

echo 
$image;


P.S. Both ImageMagick options in the settings don't work.

N2GetherNow

For some reason, it didn't attach and don't see an edit button, so here we are creating traffic^^

ron4mac

You need to first get rid of the errors that you are getting in the install process. If you select the Imagick Extension during install and it doesn't display the test images okay or it gets errors .. you need to get that corrected. I know nothing about Windows installs so can't help with issues arising from that platform. Much easier and more stable to run a linux server. CPG runs perfectly fine on a $50 Raspberry Pi 4b with ubuntu/debian/raspbian.

N2GetherNow

But I don't get any useful errors, also it actually works. It seems for some reason, CPG can't use it, while the PHP file i'm testing with can.
Nevermind, I'll just go with GD2.