Interface IPromptImageInfo


public interface IPromptImageInfo
Represents metadata of an image, such as its size or format.
Since:
8.5.0
  • Method Summary

    Modifier and Type
    Method
    Description
    The suggested file extension of the image, without a leading dot, e.g.
    The format of the image, e.g.
    int
    The height of the image.
    The MIME type of the image.
    int
    The width of the image.
  • Method Details

    • extension

      String extension()
      The suggested file extension of the image, without a leading dot, e.g. "png" or "jpg".
      Returns:
      The file extension as a string.
    • format

      String format()
      The format of the image, e.g. "png" or "jpeg". See IPromptImageConvertBuilder.format(IPromptImageFormatConverter).
      Returns:
      The format as a string.
    • height

      int height()
      The height of the image.
      Returns:
      The height in pixels.
    • mimeType

      String mimeType()
      The MIME type of the image.
      Returns:
      The MIME type as a string.
    • width

      int width()
      The width of the image.
      Returns:
      The width in pixels.