Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Facedetector i rozmycie twarzy
in5ane
post
Post #1





Grupa: Zarejestrowani
Postów: 1 335
Pomógł: 34
Dołączył: 9.11.2005
Skąd: Wrocław

Ostrzeżenie: (10%)
X----


Hej, mam pytanie. Dlaczego poniższy kod na localhoście (WampServer) pixeluje ten kawałek zdjęcia, a na serwerze firmy kei.pl zamiast pixelate jest coś a'la sepia?

  1. <?php
  2. public function toJpeg()
  3. {
  4. $width_face = $this->face['x'] + $this->face['w'] - $this->face['x'];
  5. $height_face = $this->face['y'] + $this->face['w'] - $this->face['y'];
  6. $image2 = imagecreate($width_face, $height_face);
  7. imagecopy($image2, $this->canvas, 0, 0, $this->face['x'], $this->face['y'], $width_face, $height_face);
  8. imagefilter($image2, IMG_FILTER_PIXELATE, 20);
  9. imagecopy($this->canvas, $image2, $this->face['x'], $this->face['y'], 0, 0, $width_face, $height_face);
  10.  
  11.  
  12. imagejpeg($this->canvas, $this->file_name);
  13. }


Wygląda to tak:
(IMG:http://sexoffers.eu/blad_kei.jpg)

Chciałbym odświeżyć temat, bo wróciłem do poprawki tego. Macie jakiś pomysł? Czy od razu uderzać do KEI.PL czy to może coś u siebie muszę ustawić?

Ten post edytował in5ane 13.05.2014, 18:35:21
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: 23.08.2025 - 07:02