Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> GD2 straszne kolory i jakosc
bronx
post
Post #1





Grupa: Zarejestrowani
Postów: 333
Pomógł: 0
Dołączył: 4.03.2004

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


witam

mam taki kodzik:

  1. <?php
  2. $abc = imagecreatefromjpeg(&#092;"komet2d.jpg\"); 
  3. $def = imagecreate(150, 120); 
  4. imagecopyresampled($def, $abc, 0, 0, 0, 0, 150, 100, 725, 500); 
  5. imagejpeg($def, 'miniatura.jpg', 100); 
  6. ImageDestroy($abc); 
  7. ImageDestroy($def); 
  8.  
  9. print &#092;"<HTML><HEAD><TITLE>test</TITLE></HEAD><BODY>
  10. original:<hr><img src=&#092;"komet2d.jpg\"><br><br><br>new:<hr><img src=\"miniatura.jpg\"></BODY></HTML>\";
  11. ?>


no i stworzona miniatura wygląda strasznie, nie ma wszystkich kolorów i wogóle bardzo zła jakośc :/

czemu tak jest ?

Ten post edytował bronx 18.03.2005, 16:21:40
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
mike
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

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


Cytat(imagecreate())
Description
resource imagecreate( int x_size, int y_size )

imagecreate() returns an image identifier representing a blank image of size x_size by y_size.

We recommend the use of manual/pl/function.imagecreatetruecolor.php" target="_blank.

Może to pomoże.
Go to the top of the page
+Quote Post
adam.jojo
post
Post #3





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 7.02.2005

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


Zdecydowanie pomaga imagecreatetruecolor().
Wilkie podziękowania.
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 - 19:37