JoomGalleryfriends / JG4-dev

Development repository for JoomGallery v4.x
GNU General Public License v3.0
10 stars 6 forks source link

[IMGtools service]: Wrong error message Unsupported image filetype #62

Closed Elfangor93 closed 1 year ago

Elfangor93 commented 1 year ago

Issue detected by @szepty-ziemi

  1. Selected IM and it seems that JG is detecting it correctly, even if I don't specify the path: grafik
  2. Then I'm trying to upload image and it fails:

Save failed with the following error: Unsupported image filetype.

grafik Previously I didn't have to specify the path (previous test versions) and IM worked fine. https://prnt.sc/gjbixfIRq-Cn

AlexanderSupp commented 1 year ago

Take a look at issue #36 and my comment from Sep 08 and Nov 11. It's from my point of view, the same problem.

MrMusic commented 1 year ago

The cause is probably in the function getTypes() in IMtools.php. This function does not return any values with imagemagick v6.x.

Line934: @\exec(\trim($this->impath).'convert -version', $output);

A debug of $output returns the following array:

Array
(
    [0] => Version: ImageMagick 6.9.10-68 Q16 x86_64 2021-10-14 https://imagemagick.org
    [1] => Copyright: © 1999-2019 ImageMagick Studio LLC
    [2] => License: https://imagemagick.org/script/license.php
    [3] => Features: Cipher DPC Modules OpenMP(3.1)
    [4] => Delegates (built-in): bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps rsvg tiff wmf x xml zlib
)

I guess you need different functions for ImageMagick v6.x and v7.x ?

AlexanderSupp commented 1 year ago

I checked once more the situation in my environments. === Provider DomainFactory === Joomla 3.10.x with JG 3.6 for Fotofreunde-Much.de PHP-Version 8.1.14 Imagick compiled with ImageMagick version ImageMagick 6.9.12-34 Q16 x86_64 2021-12-22 Imagick using ImageMagick library version ImageMagick 6.9.12-72 Q16 x86_64 17615 ImageMagick works correct.

Joomla 4.2.6 with JG 4.0 for Test.Wanderboys.de PHP and ImageMagick same as above ImageMagick failed Save failed with the following error: Unsupported image filetype.

JG4 must provide different versions, so that I am able to upgrade from the old to the new system. Currently, only version ImageMagick-7.1.0-Q16-HDRI works. Tested with WampServer and my Synology DS214Play.