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
foreach (glob("/pfad/*.jpg") as $filename) {
# Dateien werden beschnitten
# Dateien werden angezeigt (Liste -> Link)
}
?>
PHP: imagecreatefromjpeg - ManualDer Post bezieht sich jetzt auf den Punkt 2. Dabei weiß ich nicht, welche Funktion ich verwenden muss.
Du könntest ja gleich mehrere Felder zum Upload anbieten. Oder google mal füttern mitAber wirklich komfortabel ist das nicht, wenn man 10 Bilder gleichzeitig hochladen möchte
upload drag and drop jquery
<?php
$org_img = 'quelle.jpg';
$dst_img = 'ziel.jpg';
$crop = 20;
$xy_org = getimagesize($org_img);
$x_new = $xy_org[0] - (2 * $crop);
$y_new = $xy_org[1] - (2 * $crop);
$tmp_img = imagecreatetruecolor($x_new, $y_new);
$src_img = imagecreatefromjpeg($org_img);
imagecopy($tmp_img, $src_img, 0, 0, $crop, $crop, $x_new, $y_new);
imagejpeg($tmp_img, $dst_img, 75);
imagedestroy($tmp_img);
?>
foreach (glob($pfad."*.jpg") as $dateipfad) {
$path_parts = pathinfo($dateipfad);
$datei = $path_parts['filename'];
$dst_x = 0;
$dst_y = 0;
$src_x = 60;
$src_y = 60;
$dst_w = 900;
$dst_h = 550;
$src_w = 960;
$src_h = 610;
$dst_image = imagecreatetruecolor($dst_w,$dst_h);
$src_image = imagecreatefromjpeg($pfad.$datei.".jpg");
imagecopyresampled($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h);
imagejpeg($dst_image, $pfad_neu.$datei.".jpg");
}