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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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.