ProcessedImage

org.llm4s.imageprocessing.ProcessedImage
case class ProcessedImage(data: Array[Byte], format: ImageFormat, width: Int, height: Int, metadata: ImageMetadata)

Represents a processed image with metadata.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def saveToFile(path: Path): Either[LLMError, Unit]

Save the processed image to a file.

Save the processed image to a file.

Attributes

def sizeInBytes: Long

Get image size in bytes.

Get image size in bytes.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product