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
-hobibit-
post
Post #2





Goście







Wielkie dzięki. Nie mam pojęcia dlaczego tak było... ten plik naprawdę nie był innym plikiem ze zmienionym rozszerzeniem.
Mam jeszcze jedno pytanie, ten fragment potrzebowałem do tworzenia miniatur.
czyli w sumie standard ale u mnie
  1. <?php
  2. $miniatura = imagecreatetruecolor(100, 100);
  3. ?>

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.
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: 12.10.2025 - 10:08