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 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.