FirebaseVertexAI Framework Reference

ImageConversionError

public enum ImageConversionError : Error

An enum describing failures that can occur when converting image types to model content data. For some image types like CIImage, creating valid model content requires creating a JPEG representation of the image that may not yet exist, which may be computationally expensive.

  • The image (the receiver of the call toModelContentParts()) was invalid.

    Declaration

    Swift

    case invalidUnderlyingImage
  • A valid image destination could not be allocated.

    Declaration

    Swift

    case couldNotAllocateDestination
  • JPEG image data conversion failed, accompanied by the original image, which may be an instance of NSImageRep, UIImage, CGImage, or CIImage.

    Declaration

    Swift

    case couldNotConvertToJPEG(Any)