forked from leftypol/leftypol
ImageFormatReader: add iamge format readers
This commit is contained in:
parent
557e43e38f
commit
1485ef3f2d
3 changed files with 62 additions and 0 deletions
11
inc/Service/Media/ImageFormatReader.php
Normal file
11
inc/Service/Media/ImageFormatReader.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
namespace Vichan\Service\Media;
|
||||
|
||||
|
||||
interface ImageFormatReader {
|
||||
/**
|
||||
* @param string $file_path Image file path.
|
||||
* @return array An array with width and height.
|
||||
*/
|
||||
public function getSizes(string $file_path): array;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue