LINUX.ORG.RU
ФорумAdmin

PHP & GD & exif


0

0

Странно собрал пыхпых с поддержкой ГД и экзифа, но почему-то скрипт отказывается обрабатывать картинки, делает вид, что их как будто бы нету =) до этого все стояло из пакетов - работало. В чем может быть прикол?

--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--with-xpm-dir \
--with-ttf \
--with-freetype-dir \
--with-t1lib \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--enable-exif \

[root@master trade_point]# rpm -qa gd*
gdbm-1.8.0-27.fc7
gd-2.0.35-1.fc7

[root@master trade_point]# rpm -qa libexif*
libexif-devel-0.6.15-3.fc7
libexif-0.6.15-3.fc7

Ммм?

★★★

Определил, что пхп заваливается на функции imagecreatetruecolor()

imagetruecolor() - returns an image identifier representing a black image of the specified size.

Depending on your PHP and GD versions this function is defined or not. With PHP 4.0.6 through 4.1.x this function always exists if the GD module is loaded, but calling it without GD2 being installed PHP will issue a fatal error and exit. With PHP 4.2.x this behaviour is different in issuing a warning instead of an error. Other versions only define this function, if the correct GD version is installed.

И что у меня не так?

VirRaa ★★★
() автор топика
Ответ на: комментарий от VirRaa

Не, ошибся... оказывается ошибка в

Fatal error: Call to undefined function imagecreatefromjpeg() in /var/www/html/trade_point/upload_info/avatars/avatar.php on line 39

хотя собираю --with-jpeg-dir

VirRaa ★★★
() автор топика
Ответ на: комментарий от VirRaa

P.S. Последнее время сам себе на посты отвечаю... просто хотелось срочно решить проблему... вот сразу сюда и побежал...

VirRaa ★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.