Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Pare błędów i jaką funkcje
zurawa123
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 11.11.2009

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


A wiec mam takie cos
  1. <?php
  2. $img1 = imagecreatefromjpeg('zdjecie.jpg');
  3. $img = imagecreatefromjpeg('zdjecie.jpg');
  4. $col = imagecolorallocatealpha($img, 255, 255, 255, 100);
  5. $img = imagerotate($img, 0, $col);
  6. $test ='$img $img1';
  7. //Tekst
  8. $white = imagecolorallocate($img, 255, 255, 255);
  9. $grey = imagecolorallocate($img, 128, 128, 128);
  10. $black = imagecolorallocate($img, 0, 0, 0);
  11. $text = 'zurawa123';
  12. $img = '(5, 3, 10, $text, $black)';
  13. imagesavealpha($test, true);
  14. imagepng($test, "temp.png");
  15. ?>

Błąd
Warning: imagesavealpha(): supplied argument is not a valid Image resource in /usr/export/www/hosting/zurawa123/lol/index.php on line 13

Warning: imagepng(): supplied argument is not a valid Image resource in /usr/export/www/hosting/zurawa123/lol/index.php on line 14

I potrzebuje skryptu który nanosi na obrazek drugi obrazek
jest tego dużo na necie ale ja potrzbuje bez żadnych przeżroczystosci i gdzie wysokości ustawiamy poprostu $wys a szerokosci $szer
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
wookieb
post
Post #2





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




Jak ty łączysz obrazki? Imagecopymerge np (manual) błędy są dlatego że podajesz źle argumenty. Nie string tylko resource. W twoim wypadku będzie to wynik operacji imagecopy*
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 - 10:26