Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]problem z imagecreatefromgif
-hobibit-
post
Post #1





Goście







Nie działa mi fragment kodu z funkcją: imagecreatefromgif.

  1. <?php
  2. if (function_exists('imagecreatefromgif')){echo 'jest';}
  3. $obrazek_tymczasowy = imagecreatefromgif("pliki/qwe.gif");
  4. ?>


  1. jest
  2. Warning: imagecreatefromgif() [function.imagecreatefromgif]: 'pliki/qwe.gif' is not a valid GIF file in /home/hobibit/public_html/art/index.php on line 71


Fragment z phpinfo():
gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled
Powód edycji: dodanie tagu ~Cienki1980
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
l0ud
post
Post #2





Grupa: Zarejestrowani
Postów: 1 387
Pomógł: 273
Dołączył: 18.02.2008

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


Cytat
tworzy kwadracik ale wypełniony czarnym kolorem i żeby cokolwiek tam zamieścić widocznego musiałem pomalować go na biało. Czy jest jakiś inny sposób czy ja coś źle zrobiłem.


W wypadku truecolor to normalne, że obrazek jest domyślnie czarny. Do zrobienia miniatury najlepiej użyj (po wyliczeniu współczynników) imagecopyresampled().

http://pl.php.net/manual/pl/function.imagecopyresampled.php
Go to the top of the page
+Quote Post

Posty w temacie


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: 14.10.2025 - 14:17