Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<?php
$Bild = imagecreatefromjpeg("bild.jpg");
$Bildbreite = imagesx($Bild);
$Bildhoehe = imagesy($Bild);
echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
for($i = 0; $i < $Bildhoehe; $i++) {
echo" <tr>\n";
for($j = 0; $j < $Bildbreite; $j++) {
$RGB = imagecolorat($Bild, $j, $i);
$RGBWert = imagecolorsforindex($Bild, $RGB);
echo" <td style=\"background-color:rgb(",$RGBWert[red],",",$RGBWert[green],",",$RGBWert[blue],");height:1px;width:1px;\">";
echo"</td>\n";
}
echo" </tr>\n";
}
echo"</table>";
?>
das ist ein ganz einfaches php programm. Lässt sich in 10 min programmieren, schwupps brauchst dich nicht mehr anstrengen
PHP:<?php $Bild = imagecreatefromjpeg("bild.jpg"); $Bildbreite = imagesx($Bild); $Bildhoehe = imagesy($Bild); echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"; for($i = 0; $i < $Bildhoehe; $i++) { echo" <tr>\n"; for($j = 0; $j < $Bildbreite; $j++) { $RGB = imagecolorat($Bild, $j, $i); $RGBWert = imagecolorsforindex($Bild, $RGB); echo" <td style=\"background-color:rgb(",$RGBWert[red],",",$RGBWert[green],",",$RGBWert[blue],");height:1px;width:1px;\">"; echo"</td>\n"; } echo" </tr>\n"; } echo"</table>"; ?>
Oh Wunder, Oh Wunder.... 0.o
hey Frank! Hab deinen Code mal benutzt XD Hier klicken ist nurn kleines bild, also keine angst wergen dem Browser!