Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> PHP i GD
Picia
post
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 29.03.2003
Skąd: Poznan :P

Ostrzeżenie: (0%)
-----


Mam php 4.3.1 wlasnie skompilowane, na 100% z GD:

GD Support enabled
GD Version bundled (2.0 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled

Zrodlo takie:
<?
Header("Content-type: image/jpeg");
$im = imagecreatefromjpeg("image2.jpg");
Imagejpeg($im,'',20);
ImageDestroy($im);
?>

I komunikat o bledzie:
<br />
<b>Fatal error</b>: Call to undefined function: imagecreatefromjpeg() in <b>/home/www/piotrs/grafika.php</b> on line <b>15</b><br />


Podobny komunikat wywala mi sie rowniez w komendzie imagejpeg dla wyniku. Co zrobic? Czemu nie dziala?
Go to the top of the page
+Quote Post
KaMeLeOn
post
Post #2





Grupa: Zarejestrowani
Postów: 680
Pomógł: 0
Dołączył: 1.10.2002
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Cytat
GD Support  enabled  
GD Version  bundled (2.0 compatible)  
GIF Read Support  enabled  
PNG Support  enabled  
WBMP Support  enabled


A czy widzisz tu obsługę JPEG ?
Go to the top of the page
+Quote Post
Picia
post
Post #3





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 29.03.2003
Skąd: Poznan :P

Ostrzeżenie: (0%)
-----


a co mozna zrobic zeby byla obsluga JPEG?
Go to the top of the page
+Quote Post
KaMeLeOn
post
Post #4





Grupa: Zarejestrowani
Postów: 680
Pomógł: 0
Dołączył: 1.10.2002
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Kod
--with-jpeg-dir=/usr/lib
Go to the top of the page
+Quote Post
Picia
post
Post #5





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 29.03.2003
Skąd: Poznan :P

Ostrzeżenie: (0%)
-----


Tak kompilowac na nowo, czy jak?
Go to the top of the page
+Quote Post
wassago
post
Post #6





Grupa: Przyjaciele php.pl
Postów: 701
Pomógł: 0
Dołączył: 26.06.2002
Skąd: Londyn

Ostrzeżenie: (0%)
-----


Moze z innej beczki: jak sie kompiluje php z GD2.0??
Gdzie mogl bym troche o tym poczytac?? - w zasadzie ogolnie o kompilacji php...
Go to the top of the page
+Quote Post
Picia
post
Post #7





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 29.03.2003
Skąd: Poznan :P

Ostrzeżenie: (0%)
-----


'./configure' '--with-apxs' '--with-mysql' '--with-config-file-path=/sciezka' '--with-gd' '--with-jpeg-dir=/usr/lib' '--with-zlib'

Moze tak? Tam gdzie sciezka podajesz sciezke pliku z configuracja-folder. Jesli jpegi ma akceptowac dodatkowo to tak jak widzisz (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Mozesz uciac MySQL (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) .

3maj sie
Go to the top of the page
+Quote Post
Picia
post
Post #8





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 29.03.2003
Skąd: Poznan :P

Ostrzeżenie: (0%)
-----


Aha.
Poczytac:
www.php.net
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 11:13