Add stock items, groups and movements at a moving average cost
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Shared\Application\Contracts;
|
||||
|
||||
/**
|
||||
* Turns an uploaded image into upright, downscaled JPEGs without metadata
|
||||
* (no location), for task images and stock item images.
|
||||
*/
|
||||
interface ImageResizer
|
||||
{
|
||||
/**
|
||||
* JPEG versions of the image whose longer side is at most each of the
|
||||
* given sizes, or null when the file is not a readable image.
|
||||
*
|
||||
* @param list<int> $maxSizes
|
||||
* @return list<array{bytes: string, width: int, height: int}>|null
|
||||
*/
|
||||
public function jpegVersions(string $path, array $maxSizes): ?array;
|
||||
}
|
||||
Reference in New Issue
Block a user