ImageProcessingClient
Main interface for image processing operations.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
Value members
Abstract methods
Analyzes an image and returns a description.
Analyzes an image and returns a description.
Value parameters
- imagePath
-
Path to the image file
- prompt
-
Optional prompt to guide the analysis
Attributes
- Returns
-
Either error or image analysis result
Converts image format.
Converts image format.
Value parameters
- imagePath
-
Path to the input image
- targetFormat
-
Target image format
Attributes
- Returns
-
Either error or converted image
Preprocesses an image with specified operations.
Preprocesses an image with specified operations.
Value parameters
- imagePath
-
Path to the input image
- operations
-
List of preprocessing operations to apply
Attributes
- Returns
-
Either error or processed image
Resizes an image to specified dimensions.
Resizes an image to specified dimensions.
Value parameters
- height
-
Target height
- imagePath
-
Path to the input image
- maintainAspectRatio
-
Whether to maintain aspect ratio
- width
-
Target width
Attributes
- Returns
-
Either error or resized image
Concrete methods
Asynchronously analyzes an image and returns a description.
Asynchronously analyzes an image and returns a description.
Default implementation wraps the synchronous call in a Future with an explicit blocking boundary to avoid starving compute pools.
Value parameters
- ec
-
ExecutionContext for async execution
- imagePath
-
Path to the image file
- prompt
-
Optional prompt to guide the analysis
Attributes
- Returns
-
Future containing either error or image analysis result