Interface IPromptImageService
public interface IPromptImageService
Service 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
Modifier and TypeMethodDescriptionconvert()Gets a builder for a converter that can post-process images.info(InputStream image) Finds the size of the given image in pixels,
-
Method Details
-
convert
IPromptImageConvertBuilder convert()Gets a builder for a converter that can post-process images.- Returns:
- The builder.
-
info
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.
-