coppermine-gallery.com/forum

Support => cpg1.6.x Support => cpg1.6 install => Topic started by: N2GetherNow on November 18, 2023, 10:01:22 AM

Title: Error on step 5 (image library testing)
Post by: N2GetherNow on November 18, 2023, 10:01:22 AM
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

Title: Re: Error on step 5 (image library testing)
Post by: N2GetherNow on November 19, 2023, 08:20:52 AM
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?
Title: Re: Error on step 5 (image library testing)
Post by: ron4mac on November 19, 2023, 05:31:05 PM
It might be helpful to install the imagemagick package to see if that makes a difference.
Title: Re: Error on step 5 (image library testing)
Post by: N2GetherNow on November 20, 2023, 05:31:57 AM
I don't understand what you mean.
Title: Re: Error on step 5 (image library testing)
Post by: N2GetherNow on December 05, 2023, 02:15:12 PM
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.
Title: Re: Error on step 5 (image library testing)
Post by: N2GetherNow on December 05, 2023, 02:17:05 PM
For some reason, it didn't attach and don't see an edit button, so here we are creating traffic^^
Title: Re: Error on step 5 (image library testing)
Post by: ron4mac on December 05, 2023, 04:37:45 PM
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.
Title: Re: Error on step 5 (image library testing)
Post by: N2GetherNow on December 06, 2023, 08:07:36 PM
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.