MediaHandler.php: add closeHandle and installMediaAndGenerateThumb
This commit is contained in:
parent
4bbb5f00a4
commit
4eee6cb58f
1 changed files with 11 additions and 0 deletions
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue