Interface IPromptImageService
-
public interface IPromptImageServiceService for working with images in relation to prompt services, e.g. transforming images before they are sent to a prompt service; or after they were received from a prompt service.- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IPromptImageConvertBuilderconvert()Gets a builder for a converter that can post-process images.IPromptImageInfoinfo(InputStream image)Finds the size of the given image in pixels,
-
-
-
Method Detail
-
convert
IPromptImageConvertBuilder convert()
Gets a builder for a converter that can post-process images.- Returns:
- The builder.
-
info
IPromptImageInfo info(InputStream image) throws IOException
Finds the size of the given image in pixels,- Parameters:
image- Image to analyze.- Returns:
- Info about the image.
- Throws:
IOException- When the image could not be read or analyzed.
-
-