We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40131
    • 40 Posts
    After upgrading two sites to 2.2.7 somehow ImageMagick is not used anymore.
    Crop methods and filters like UnsharpMask are not applied. All thumbnails look blurry and ugly now.

    phpthumbof stopped using ImageMagick for these tasks. There are no error/logs I could trace.

    Any ideas?

    PS
    phpthumb_imagemagick_path setting is already set.
      • 40045
      • 534 Posts
      aaaah, now I'm seeing why my thumbs look crappy suddenly (with no change at all to the frontend code)...i could partly make it better by setting the q (quality) param of phpthumbof explicitly to 100, but doesn't fix it for every thumb (there are still some ugly ones^^ btw. it seems to depend on the image itself how "bad" the thumb will be...)

      looking forward to a solution to this, very interested =)!

      thanks for reporting!
        • 40131
        • 40 Posts
        Quote from: exside at Apr 17, 2013, 08:45 AM
        aaaah, now I'm seeing why my thumbs look crappy suddenly (with no change at all to the frontend code)...i could partly make it better by setting the q (quality) param of phpthumbof explicitly to 100, but doesn't fix it for every thumb (there are still some ugly ones^^ btw. it seems to depend on the image itself how "bad" the thumb will be...)

        looking forward to a solution to this, very interested =)!

        thanks for reporting!

        I have found this fragment in the error log:

            [30] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
            [31] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1865


        the complete repeating pattern is:


        [2013-04-12 22:11:12] (ERROR @ /index.php) [phpThumbOf] Could not generate thumbnail: / - Debug: Array
        (
            [0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
            [1] => setCacheDirectory() starting with config_cache_directory = "/...my path.../root/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
            [2] => setting config_cache_directory to realpath(/...my path.../root/core/cache/phpthumb) = "/...my path.../root/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
            [3] => setCacheDirectory() starting with config_cache_directory = "/...my path.../root/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
            [4] => setting config_cache_directory to realpath(/...my path.../root/assets/components/phpthumbof/cache) = "/...my path.../root/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
            [5] => setSourceFilename(/) set $this->sourceFilename to "/" in file "phpthumb.class.php" on line 243
            [6] => skipping CleanUpCacheDirectory() set to purge (30.0 days; 150.00MB; 10,000 files) in file "phpthumb.class.php" on line 652
            [7] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 884
            [8] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 895
            [9] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 902
            [10] => $this->thumbnailQuality set to "85" in file "phpthumb.class.php" on line 912
            [11] => ResolveFilenameToAbsolute() prepending $this->config_document_root (/...my path.../root/) to $filename (/) resulting in ($AbsoluteFilename = "/...my path.../root//") in file "phpthumb.class.php" on line 1025
            [12] => $this->sourceFilename set to "/...my path.../root" in file "phpthumb.class.php" on line 813
            [13] => phpThumb() v1.7.9-200712090829
        
        
        "/...my path.../root" is not a file in file "phpthumb.class.php" on line 3647
            [17] => setCacheDirectory() starting with config_cache_directory = "/...my path.../root/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 919
            [18] => setting config_cache_directory to realpath(/...my path.../root/assets/components/phpthumbof/cache) = "/...my path.../root/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
            [19] => SetCacheFilename() _src set from md5($this->sourceFilename) "/...my path.../root" = "c6c75dd70eb4dc1d4c20de122ca46c4c" in file "phpthumb.class.php" on line 3077
            [20] => SetCacheFilename() _par set from md5(_fltrusm|60|0.1|3_farC_zcTR_h113_w150_dpi150_q95) in file "phpthumb.class.php" on line 3110
            [21] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2897
            [22] => GetImageSize("/...my path.../root") failed in file "phpthumb.class.php" on line 2920
            [23] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
            [24] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1865
            [25] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2927
            [26] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2876
            [27] => SetOrientationDependantWidthHeight() setting w="150", h="113" in file "phpthumb.class.php" on line 2892
            [28] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2979
            [29] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3229
            [30] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
            [31] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1865
            [32] => starting ImageCreateFromFilename(/...my path.../root) in file "phpthumb.class.php" on line 3152
            [33] => empty $filename or GetImageSize(/...my path.../root) failed in file "phpthumb.class.php" on line 3201
            [34] => Populating $rawimagedata in file "phpthumb.class.php" on line 3209
            [35] => cannot fopen(/...my path.../root) in file "phpthumb.class.php" on line 3212
            [36] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3278
            [37] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3330
            [38] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3332
            [39] => phpThumb() v1.7.9-200712090829
        
        Unknown image type identified by "" () in SourceImageToGD()[3444] in file "phpthumb.class.php" on line 3647
            [40] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
        [ed. note: nickyz last edited this post 13 years, 5 months ago.]
          • 40045
          • 534 Posts
          got exactly the same error messages^^
            • 40131
            • 40 Posts
            In my case upgrading to 2.2.8 fixed the issue.

            Case closed for now.