MediaHandler.php: add closeHandle and installMediaAndGenerateThumb

This commit is contained in:
Zankaria 2025-03-18 13:01:42 +01:00
parent 4bbb5f00a4
commit 4eee6cb58f

View file

@ -27,6 +27,17 @@ interface MediaHandler {
public function openHandle(string $file_path, string $file_mime, int $file_kind): mixed; 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. * Generates a thumbnail from the given file.
* *