Problem with images
Posted: Sun 14. Dec 2003, 13:19
I want to make a image in my articel bit in the list of the images are no images displayed. i have uploaded some und made public. why could i not introduce a image?
The phpwcms support forum will help to find answers to your questions. The small but strong community is here since more than 10 years.
https://forum.phpwcms.org/
This function does not exist: ImageCreateFromJpeg
file=/var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
file=/var/www/html/phpwcms/phpwcms_filestorage/1/1_2.jpg
file=/var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php
--------------------------------------------------------------------------------
Warning: Division by zero in /var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php on line 185
Warning: Division by zero in /var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php on line 186
Warning: Division by zero in /var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php on line 187
--------------------------------------------------------------------------------
You specified to use GD2, but not all GD2 functions are present. ImageCreateTruecolor()
file=/var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
You specified to use GD2, but not all GD2 functions are present. ImageCopyResampled()
file=/var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Image you are trying to output does not exist.
file=/var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Unable to output: /var/www/html/phpwcms/phpwcms_tmp/thumb_preview/1_2_CIHIwIp2yr.jpg
file=/var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php
--------------------------------------------------------------------------------
Warning: getimagesize(/var/www/html/phpwcms/phpwcms_tmp/thumb_preview/1_2_CIHIwIp2yr.jpg): failed to open stream: No such file or directory in /var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php on line 298
--------------------------------------------------------------------------------
This function does not exist: ImageCreateFromJpeg
file=/var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
file=/var/www/html/phpwcms/phpwcms_filestorage/1/1_2.jpg
file=/var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php
--------------------------------------------------------------------------------
Warning: Division by zero in /var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php on line 185
Warning: Division by zero in /var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php on line 186
Warning: Division by zero in /var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php on line 187
Fatal error: Call to undefined function: imagecreate() in /var/www/html/phpwcms/include/inc_lib/ext/hft_image/hft_image.php on line 255
modify /include/inc_conf/conf.inc.phpfitus wrote:i hab installed imagemagick. how do i use this
Code: Select all
$phpwcms["imagick"] = 1; //0 = GD, 1 = ImageMagick convert
Code: Select all
$phpwcms["imagick_path"] = "/path/to/imagemagick/"; //Path to ImageMagick (default="" - none)
Code: Select all
$phpwcms["imagick_path"] = "drive:\\path\\to\\imagemagick\"; //Path to ImageMagick (default="" - none)
Code: Select all
$phpwcms["imagick_path"] = "drive:\\path\\to\\imagemagick\\"; //Path to ImageMagick
(default="" - none)
or
$phpwcms["imagick_path"] = "drive:/path/to/imagemagick/";
I was having the same problem. My "local" installation has ImageMagick available, but phpWCMS wasn't handling paths with "drive letters" correctly. I modified file /include/inc_lib/default.inc.php as follows:fitus wrote:i have now the correct imagegick path in the config. i got the msg no thumbnail exists when i create the thumbs.
Code: Select all
// check which function should be used to create thumbnail images
// and if ImageMagick check if enabled or 1 or located at give path
$phpwcms["imagick_path"] = trim($phpwcms["imagick_path"]);
if($phpwcms["imagick_path"]) {
define ("IMAGICK_PATH", str_replace("//", "/", "/".$phpwcms["imagick_path"]."/"));
} else {
define ("IMAGICK_PATH", "");
}
Code: Select all
// check which function should be used to create thumbnail images
// and if ImageMagick check if enabled or 1 or located at give path
$phpwcms["imagick_path"] = trim($phpwcms["imagick_path"]);
if(preg_match("/^([A-Za-z]:)/",$phpwcms["imagick_path"])) {
define ("IMAGICK_PATH", "");
} else {
define ("IMAGICK_PATH", str_replace("//", "/", "/".$phpwcms["imagick_path"]."/"));
}