add files

This commit is contained in:
tbS
2025-08-02 13:10:21 +02:00
commit aa4fa9ae0f
702 changed files with 103724 additions and 0 deletions

17
db/datei_thumb.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
// Annahme: $file ist der Pfad zum Original
$file = $_POST['file']; // Added semicolon here
// Imagick-Objekt erstellen und Thumbnail generieren
$img = new Imagick($file);
$img->cropThumbnailImage(128, 128);
$img->setImageFormat("png");
$thumbnail = base64_encode($img->getImageBlob());
// Speicher freigeben
$img->clear();
$img->destroy();
// Das generierte Thumbnail als JSON zurückgeben
echo json_encode(array('thumbnail' => $thumbnail)); // Return thumbnail as JSON
?>