Дополнительное поле с типом изображение.
Картинка выводится, но размер не меняется.
error.log
[phpThumbOf] Could not generate thumbnail: img/Layer-14.png - Debug: Array
(
[0] => phpThumb() v1.7.14-201604151303 in file "phpthumb.class.php" on line 227
[1] => setCacheDirectory() starting with config_cache_directory = "D:/OpenServer/domains/credit/modx/core/cache/phpthumb/" in file "phpthumb.class.php" on line 1006
[2] => setting config_cache_directory to $this->realPathSafe(D:\OpenServer\domains\credit\modx\core\cache\phpthumb) = "D:\OpenServer\domains\credit\modx\core\cache\phpthumb" in file
"phpthumb.class.php" on line 1034
[3] => setCacheDirectory() starting with config_cache_directory = "D:/OpenServer/domains/credit/modx/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 1006
[4] => setting config_cache_directory to $this->realPathSafe(D:\OpenServer\domains\credit\modx\assets\components\phpthumbof\cache) = "D:\OpenServer\domains\credit\modx\assets\components\phpthumbof\cache"
in file "phpthumb.class.php" on line 1034
[5] => setSourceFilename(img/Layer-14.png) set $this->sourceFilename to "img/Layer-14.png" in file "phpthumb.class.php" on line 292
[6] => CleanUpCacheDirectory() set to purge (30.0 days; 100.00 MB; 10,000 files) in file "phpthumb.class.php" on line 712
[7] => CleanUpCacheDirectory() skipped because "D:\OpenServer\domains\credit\modx\assets\components\phpthumbof\cache\phpThumbCacheStats.txt" is recently modified in file "phpthumb.class.php" on line 722
[8] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 970
[9] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 981
[10] => $this->thumbnailFormat set to $this->f "png" in file "phpthumb.class.php" on line 988
[11] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 998
[12] => $this->sourceFilename set to "D:/OpenServer/domains/credit/modx//modx/img/Layer-14.png" in file "phpthumb.class.php" on line 894
[13] => phpThumb() v1.7.14-201604151303
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 4133
[14] => SetCacheFilename() _src set from md5($this->sourceFilename) "D:/OpenServer/domains/credit/modx//modx/img/Layer-14.png" = "38a85b25fd4c9df44cd786c2a27dda85" in file "phpthumb.class.php" on line 3527
[15] => SetCacheFilename() _par set from md5(_farC_w120_dpi150) in file "phpthumb.class.php" on line 3560
[16] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3320
[17] => GetImageSize(D:/OpenServer/domains/credit/modx//modx/img/Layer-14.png) says image is x in file "phpthumb.class.php" on line 3330
[18] => GetImageSize("D:/OpenServer/domains/credit/modx//modx/img/Layer-14.png") failed in file "phpthumb.class.php" on line 3363
[19] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1592
[20] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 2287
[21] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3370
[22] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3299
[23] => SetOrientationDependantWidthHeight() setting w="120", h="0" in file "phpthumb.class.php" on line 3315
[24] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3427
[25] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3686
[26] => starting ImageCreateFromFilename(D:/OpenServer/domains/credit/modx//modx/img/Layer-14.png) in file "phpthumb.class.php" on line 3601
[27] => empty $filename or GetImageSize(D:/OpenServer/domains/credit/modx//modx/img/Layer-14.png) failed in file "phpthumb.class.php" on line 3650
[28] => Populating $rawimagedata in file "phpthumb.class.php" on line 3658
[29] => cannot fopen(D:/OpenServer/domains/credit/modx//modx/img/Layer-14.png) in file "phpthumb.class.php" on line 3669
[30] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3757
[31] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3809
[32] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3811
[33] => phpThumb() v1.7.14-201604151303
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 4133
[34] => SourceImageToGD() failed in file "phpthumb.class.php" on line 372
)
Михаил 06.09.2016 14:33 #
Batis 06.09.2016 16:48 #
Вывожу так.
на выходе получаю
<.img src=«img/Layer-14.png»>
размер изображения выходит картинки при загрузки. т.е. размер у меня width 290.
Batis 06.09.2016 17:48 #
<. img alt="" src="[[+tv.news:phpthumbof=`w=120`]]">
Михаил 07.09.2016 01:55 #
Batis 07.09.2016 02:47 #
[phpThumbOf] Could not generate thumbnail: img/Layer-14.png — Debug: Array