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
/***********/
/*? Mystaza*/
/***********/
//set path
$pfad="pics/";
//open dir
$verz=opendir ($pfad);
//max row bound
$max = 5;
//open table
echo "<table>\n";
echo "<tr>\n";
for ($i=0; $file=readdir($verz); $i++) {
if (filetype($pfad.$file)!="dir") {
//create a table cell for each picture
echo "<td>\n";
//display picture in the table cell
echo "<img src=\"";
echo $pfad;
echo $file;
echo "\">";
//this div layer is used as a block element only!
echo "<div>\n";
//delete file extension
$arrName = explode(".",basename($file));
//assigning arrayvalue to variable
$varName = $arrName['0'];
echo $varName;
echo "</div>\n";
echo "</td>\n";
//Check if there the table row must be changed
If ($i>$max) {
//if true: 1.close tr 2. redifine row bound
//1.
echo "</tr>\n";
//2.
$max = $max + 5;
}
}
}
//close dir
closedir($verz);
//close table
echo "</table>\n";
?>
table {
font-family: verdana;
font-size:10px;
text-align:center;
position:absolute;
}
table tr td {
border:1px dashed;
border-color:black;
padding:2px;
}
img {
width:70px;
height:50px;
}
Original von c1b
Ich meinte die relative Aufloesung in dpi, also nicht die Groesse.
Ein Beispiel:
Ein Bild 200px x 400px mit einer relativen Auflösung von 300dpi. Die Groesse soll gleich bleiben aber die relative Aufloesung soll auf 72dpi verringert werden.
Sorry, hab mich da etwas zu undeutlich ausgedrückt.
Danke schonmal.
mfg
c1b
int imagejpeg ( resource im [, string filename [, int quality]] )
Original von Eydeet
Vielleicht solltest du mal bei www.php.net vorbei schauen, und dir speziell das Handbuch zur FunktiondurchlesenPHP:int imagejpeg ( resource im [, string filename [, int quality]] )![]()
We use essential cookies to make this site work, and optional cookies to enhance your experience.