Interface IPromptImageConverter


  • public interface IPromptImageConverter
    A converter that can post-process images.
    Since:
    8.5.0
    • Method Detail

      • convert

        IPromptImageInfo convert​(InputStream inputStream,
                                 OutputStream outputStream)
                          throws IOException
        Converts an image from the input stream and writes the result to the output stream.
        Parameters:
        inputStream - The input stream.
        outputStream - The output stream.
        Returns:
        Info regarding the final produces image, such as the final size of the image and its format.
        Throws:
        IOException - When an I/O error occurs during the transformation.