phpThumb PDF Thumbnails doesn't work

Hello! I’ve tried to use pthumb or phpthumbof/on to make PDF thumbnails:

[[!pthumb? &input=/pdf.pdf&options=w=300&h=500&zc=1&f=jpg&sfn=0&useResizer=0]]
[[!phpthumbof? &input=/pdf.pdf &options=&w=610&f=jpg]]
[[!phpthumbon? &input=/pdf.pdf&options=w=300&h=500&zc=1&f=jpg&sfn=0&useResizer=0]]

NOTHING worked!

[2021-02-12 22:10:13] (ERROR @ /home/p426030/www/technoleague.ru/core/components/phpthumbof/model/phpthumbof.class.php : 156) [pThumb] Resource: 12 || Image: (none)
File not found: /home/p426030/www/technoleague.ru/[[+fileURL]]  *** Skipping ***
[2021-02-12 22:11:06] (ERROR @ /home/p426030/www/technoleague.ru/core/components/phpthumbof/model/phpthumbof.class.php : 156) [pThumb] Resource: 12 || Image: /home/p426030/www/technoleague.ru/pdf.pdf
Could not generate thumbnail
phpThumb debug output:
    [0] => phpThumb() v1.7.15-202004301145 in file "phpthumb.class.php" on line 233
    [1] => setSourceFilename(/home/p426030/www/technoleague.ru/pdf.pdf) set $this->sourceFilename to "/home/p426030/www/technoleague.ru/pdf.pdf" in file "phpthumb.class.php" on line 298
    [2] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;webp;png;jpeg) in file "phpthumb.class.php" on line 1009
    [3] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 1020
    [4] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 1027
    [5] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 1037
    [6] => resolvePath: /home/p426030/www/technoleague.ru/pdf.pdf (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1180
    [7] => resolvePath: iteration, path=/home/p426030/www/technoleague.ru/pdf.pdf, base path = /home/p426030/www/technoleague.ru in file "phpthumb.class.php" on line 1199
    [8] => open_basedir: "" in file "phpthumb.class.php" on line 1166
    [9] => resolvePath: stop at component 6 in file "phpthumb.class.php" on line 1215
    [10] => resolvePath: stop at path=/home/p426030/www/technoleague.ru/pdf.pdf in file "phpthumb.class.php" on line 1218
    [11] => resolvePath: path parsed, over in file "phpthumb.class.php" on line 1224
    [12] => $this->sourceFilename set to "/home/p426030/www/technoleague.ru/pdf.pdf" in file "phpthumb.class.php" on line 930
    [13] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/p426030/www/technoleague.ru/pdf.pdf" = "640e8756f3d12c052952d94d15f9a4fe" in file "phpthumb.class.php" on line 3591
    [14] => SetCacheFilename() _par set from md5(_farC_zc1_h500_w300_dpi150_q75) in file "phpthumb.class.php" on line 3624
    [15] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3389
    [16] => getimagesize(/home/p426030/www/technoleague.ru/pdf.pdf) says image is x in file "phpthumb.class.php" on line 3399
    [17] => getimagesize("/home/p426030/www/technoleague.ru/pdf.pdf") failed in file "phpthumb.class.php" on line 3428
    [18] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1635
    [19] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 2366
    [20] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3435
    [21] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3368
    [22] => SetOrientationDependantWidthHeight() setting w="300", h="500" in file "phpthumb.class.php" on line 3384
    [23] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3492
    [24] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3750
    [25] => starting ImageCreateFromFilename(/home/p426030/www/technoleague.ru/pdf.pdf) in file "phpthumb.class.php" on line 3665
    [26] => empty $filename or getimagesize(/home/p426030/www/technoleague.ru/pdf.pdf) failed in file "phpthumb.class.php" on line 3714
    [27] => Populating $rawimagedata in file "phpthumb.class.php" on line 3722
    [28] => attempting ImageCreateFromStringReplacement($rawimagedata (68296 bytes), true) in file "phpthumb.class.php" on line 3736
    [29] => ImageCreateFromStringReplacement() failed: unknown fileformat signature " 0x25 0x50 0x44" in file "phpthumb.class.php" on line 4324
    [30] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3822
    [31] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3874
    [32] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3876
    [33] => phpThumb() v1.7.15-202004301145
http://phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG['disable_debug'] = false;
to view the details of this error in file "phpthumb.class.php" on line 4197
    [34] => SourceImageToGD() failed in file "phpthumb.class.php" on line 378
----------------------

As I understand, ImageMagisk is working, but no Ghostscript! Both are installed, proof: convert command is working and converts pdf to png on the server. Help me pls.

Not a solution necessarily, but do you have all three of those phpthumb extras installed at the same time? I seem to remember reading that will not work properly…

Not of course, have just tried each of them.

This post in the old forum talks about checking your Imagemagick settings to make sure PDF conversion is enabled. Might be helpful.