. */ namespace SP\Domain\Image\Ports; use SP\Domain\Core\Exceptions\InvalidImageException; /** * Interface ImageService */ interface ImageService { /** * Build a thumbnail form an image * * @param string $image A raw image * @return string A base64 encode image string * @throws InvalidImageException */ public function createThumbnail(string $image): string; /** * Convert a test into an image * * @param string $text * * @return false|string */ public function convertText(string $text): bool|string; }