From 4eee6cb58fb10b266924c0b9f3b8d1cd39c6a8f6 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Tue, 18 Mar 2025 13:01:42 +0100 Subject: [PATCH] MediaHandler.php: add closeHandle and installMediaAndGenerateThumb --- inc/Service/Media/MediaHandler.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/inc/Service/Media/MediaHandler.php b/inc/Service/Media/MediaHandler.php index cf61ffce..1abb1d4f 100644 --- a/inc/Service/Media/MediaHandler.php +++ b/inc/Service/Media/MediaHandler.php @@ -27,6 +27,17 @@ interface MediaHandler { public function openHandle(string $file_path, string $file_mime, int $file_kind): mixed; + public function closeHandle(mixed $handle); + + public function installMediaAndGenerateThumb( + mixed $handle, + string $media_preferred_out_file_path, + string $thumb_preferred_out_file_path, + string $thumb_preferred_out_mime, + int $thumb_max_width, + int $thumb_max_height + ); + /** * Generates a thumbnail from the given file. *