Hallo
Aufgrund eigenem versagen, suche ich nun jemand der mir einen Script erstellen kann, welcher mir aus verschienden PNG Bilder ein Gif erstellt.
Ich habe via Google schon viele Classen gefunden die teils funktionieren. Doch beim transparenten Hintergrund scheitere ich jedesmal.
Leider ist keiner der Autoren dieser Classen erreichbar.
Darum biete ich nun euch an:
Ich versuch mittels dem Script unten ein Bild zu generieren, anschliessend werden 2 weitere praktisch identische Codes zu einem einzelnen Gif Animation.
Welche man so aufrufen kann/sollte:
http://attractive.coffee/dancegenera...er=lilmama9007
Dieser Code liefert eines der Bilder, alle folgenden Bilder für die Animation werden gleich generiert. Alle Classen die ich Online fand konnten den Hintergrund nicht Transparent darstellen.
Bei Interesse schreibt doch gleich wie viel das es Kosten würde.
Aufgrund eigenem versagen, suche ich nun jemand der mir einen Script erstellen kann, welcher mir aus verschienden PNG Bilder ein Gif erstellt.
Ich habe via Google schon viele Classen gefunden die teils funktionieren. Doch beim transparenten Hintergrund scheitere ich jedesmal.
Leider ist keiner der Autoren dieser Classen erreichbar.
Darum biete ich nun euch an:
Ich versuch mittels dem Script unten ein Bild zu generieren, anschliessend werden 2 weitere praktisch identische Codes zu einem einzelnen Gif Animation.
Welche man so aufrufen kann/sollte:
http://attractive.coffee/dancegenera...er=lilmama9007
Dieser Code liefert eines der Bilder, alle folgenden Bilder für die Animation werden gleich generiert. Alle Classen die ich Online fand konnten den Hintergrund nicht Transparent darstellen.
Bei Interesse schreibt doch gleich wie viel das es Kosten würde.
PHP-Code:
$habbo_string = $_GET['habbo'];
$hotel_string = $_GET['hotel'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.habbo.$hotel_string/habbo-imaging/avatarimage?user=$habbo_string&direction=4&head_direction=4&action=,wav&gesture=sml&size=m&img_format=gif");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5');
$habbo = curl_exec($ch);
curl_close($ch);
$ch_1 = curl_init();
curl_setopt($ch_1, CURLOPT_URL, "https://www.habbo.$hotel_string/habbo-imaging/avatarimage?user=$habbo_string&direction=4&head_direction=3&action=wlk&gesture=sml&size=m&img_format=gif");
curl_setopt($ch_1, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch_1,CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5');
$habbo_1 = curl_exec($ch_1);
curl_close($ch_1);
$ch_2 = curl_init();
curl_setopt($ch_2, CURLOPT_URL, "https://www.habbo.$hotel_string/habbo-imaging/avatarimage?user=$habbo_string&direction=4&head_direction=5&action=wlk,crr=0&gesture=sml&size=m&img_format=gif");
curl_setopt($ch_2, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch_2,CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5');
$habbo_2 = curl_exec($ch_2);
curl_close($ch_2);
$ch_3 = curl_init();
curl_setopt($ch_3, CURLOPT_URL, "https://www.habbo.$hotel_string/habbo-imaging/avatarimage?user=$habbo_string&direction=4&head_direction=4&action=&gesture=sml&size=m&img_format=gif");
curl_setopt($ch_3, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch_3,CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5');
$habbo_3 = curl_exec($ch_3);
curl_close($ch_3);
//KOPF
$im_1 = imagecreatetruecolor(64, 110);
$farbe_body = imagecolorallocate( $im_1, 255, 0, 255);
imagefill ( $im_1, 0, 0, $farbe_body );
imagecolortransparent($im_1, $farbe_body);
$user = imagecreatefromstring("$habbo_1");
imagecopy($im_1, $user, 0, 0, 0, 0, 64, 80);
$cut = imagecreatefromgif("cut_3.gif");
imagecopy($im_1, $cut, 0, 0, 0, 0, 64, 110);
$purple_1 = imagecolorallocate ( $im_1, 255, 0, 255 );
$im_3 = imagecreatetruecolor(110, 110);
$farbe_body_2 = imagecolorallocate ( $im_3, 255, 0, 255 );
imagefill ( $im_3, 0, 0, $farbe_body_2 );
imagecolortransparent($im_3, $farbe_body_2);
$user_4 = imagecreatefromstring("$habbo");
imagecopy($im_3, $user_4, -3, 0, 0, 0, 64, 90);
$farbe_body_3 = imagecolorallocate ( $im_3, 255, 0, 255 );
imagefill ( $im_3, 0, 0, $farbe_body_3 );
imagecolortransparent($im_3, $farbe_body_3);
$purple_3 = imagecolorallocate($im_3, 255, 0, 255);
$cut_3 = imagecreatefromgif("cut_2.gif");
imagecopy($im_3, $cut_3, 0, -1, 0, 0, 64, 110);
imagecolortransparent($im_3, $purple_3);
imagecopymerge($im_1, $im_3, 3, 0, 0, 0, 64, 110, 100);
//HAND
$im_2 = imagecreatetruecolor(110, 110);
$farbe_body_2 = imagecolorallocate ( $im_2, 255, 0, 255 );
imagefill ( $im_2, 0, 0, $farbe_body_2 );
imagecolortransparent($im_2, $farbe_body_2);
$user_3 = imagecreatefromstring("$habbo");
imagecopy($im_2, $user_3, 23, -10, 0, 0, 64, 110);
$im_2 = imagerotate($im_2, 270, 0);
imageflip($im_2, IMG_FLIP_HORIZONTAL);
$purple_2 = imagecolorallocate($im_2, 255, 0, 255);
$cut_2 = imagecreatefromgif("cut_1.gif");
imagecopy($im_2, $cut_2, -3, 27, 0, 0, 110, 64);
imagecolortransparent($im_2, $purple_2);
imagecopymerge($im_1, $im_2, 3, 0, 0, 0, 64, 110, 100);
//FUSS LINKS KNICKS
$im_4 = imagecreatetruecolor(110, 110);
$farbe_body_2 = imagecolorallocate ( $im_4, 255, 0, 255 );
imagefill ( $im_4, 0, 0, $farbe_body_2 );
imagecolortransparent($im_4, $farbe_body_2);
$user_4 = imagecreatefromstring("$habbo_1");
imagecopy($im_4, $user_4, -7, -4, 0, 0, 64, 110);
$farbe_body_3 = imagecolorallocate ( $im_4, 255, 0, 255 );
imagefill ( $im_4, 0, 0, $farbe_body_3 );
imagecolortransparent($im_4, $farbe_body_3);
$farbe_body_4 = imagecolorallocate ( $im_4, 255, 0, 255 );
imagefill ( $im_4, 0, 0, $farbe_body_4 );
imagecolortransparent($im_4, $farbe_body_4);
$purple_4 = imagecolorallocate($im_4, 255, 0, 255);
$cut_4 = imagecreatefromgif("cut_4.gif");
imagecopy($im_4, $cut_4, -7, -4, 0, 0, 64, 110);
imagecolortransparent($im_4, $purple_4);
imagecopy($im_1, $im_4, 3, 0, 0, 0, 64, 110);
$im_5 = imagecreatetruecolor(110, 110);
$farbe_body_2 = imagecolorallocate ( $im_5, 255, 0, 255 );
imagefill ( $im_5, 0, 0, $farbe_body_2 );
imagecolortransparent($im_5, $farbe_body_2);
$user_5 = imagecreatefromstring("$habbo_3");
imagecopy($im_5, $user_5, -3, -0, 0, 0, 64, 110);
$farbe_body_3 = imagecolorallocate ( $im_5, 255, 0, 255 );
imagefill ( $im_5, 0, 0, $farbe_body_3 );
imagecolortransparent($im_5, $farbe_body_3);
$farbe_body_4 = imagecolorallocate( $im_5, 255, 0, 255 );
imagefill ( $im_5, 0, 0, $farbe_body_4 );
imagecolortransparent($im_5, $farbe_body_4);
$purple_4 = imagecolorallocate($im_5, 255, 0, 255);
$cut_4 = imagecreatefromgif("cut_5.gif");
imagecopy($im_5, $cut_4, -3, -0, 0, 0, 64, 110);
imagecolortransparent($im_5, $purple_4);
imagecopy($im_1, $im_5, 3, 0, 0, 0, 64, 110);
imagetruecolortopalette($im_1, false, 256);