Visual Communication: Image messages enable rich visual communication by allowing users to share photos, screenshots, and visual content with automatic upload handling, caption support, and cross-platform compatibility.
Image Messaging Overview
Image messages provide powerful visual communication capabilities, allowing users to share photos, screenshots, documents, and other visual content with automatic upload processing and metadata support.Automatic Upload
Seamless file handling
- Automatic image upload and processing
- Progress tracking and status updates
- Multiple format support (JPEG, PNG, GIF, WebP)
- Optimized compression and quality
Rich Features
Enhanced visual messaging
- Caption and text overlay support
- Thumbnail generation
- Metadata and tagging
- Threading and reply support
Platform Implementation
Unified image handling with automatic uploadMobile SDKs provide streamlined image messaging with automatic upload processing, eliminating the need for separate upload steps.
Required Parameters
Parameter | Type | Description |
---|---|---|
subChannelId | String | Target subchannel identifier for the image message |
attachment | Image/URI | Local image file path or URI reference |
Optional Parameters
Parameter | Type | Description |
---|---|---|
caption | String | Text caption or description for the image |
tags | Array<String> | Message categorization and filtering tags |
parentId | String | Parent message ID for threaded conversations |
metadata | Object | Custom properties for extended functionality |
Implementation Examples
Automatic Processing: Mobile SDKs handle image upload, compression, and message creation in a single operation, providing seamless user experience with progress tracking.
Image Message Features
File Format & Quality Support
File Format & Quality Support
Comprehensive image format handlingSupported Formats
- JPEG: Optimal for photos and complex images with good compression
- PNG: Perfect for graphics, screenshots, and images requiring transparency
- WebP: Modern format with superior compression and quality
- Automatic Optimization: SDK handles compression for optimal delivery
- Quality Preservation: Maintains visual quality while reducing file size
- Progressive Loading: Supports progressive image loading for better UX
- Multi-resolution Generation: Automatic multi-resolution transcoding for quick previews
- File Size: Platform-specific limits (typically 10-50MB)
- Dimensions: Support for high-resolution images up to 8K
- Aspect Ratios: All aspect ratios supported with proper scaling
Example: Quality Settings
Upload Progress & Status
Upload Progress & Status
Real-time upload feedback and status trackingUpload States
- Queued: Image queued for upload processing
- Uploading: Active upload with progress percentage
- Processing: Server-side image processing and optimization
- Complete: Upload finished, message created successfully
- Failed: Upload or processing failed, retry available
- Percentage Complete: Real-time upload progress (0-100%)
- Bytes Transferred: Detailed transfer information
- Time Estimates: Estimated completion time
- Speed Monitoring: Upload speed and bandwidth usage
- Network Interruption: Automatic retry on connection restore
- File Validation: Format and size validation before upload
- Server Errors: Graceful handling of server-side issues
- User Feedback: Clear error messages and recovery options
Example: Upload Monitoring
Caption & Text Features
Caption & Text Features
Rich text support for image descriptionsCaption Capabilities
- Rich Text: Support for formatting, emojis, and special characters
- Length Limits: Generous character limits for detailed descriptions
- Multilingual: Full Unicode support for international content
- Mentions: User and role mentions within captions
- Text Field: Primary message content, searchable and indexable
- Caption Field: Image-specific description, display-optimized
- Combined Usage: Both fields can be used simultaneously
- Platform Differences: Some platforms merge text and caption
- Descriptive Captions: Provide context and description for images
- Accessibility: Use captions for screen reader compatibility
- SEO Optimization: Include relevant keywords for searchability
- Consistent Style: Maintain consistent caption formatting
Example: Rich Caption
Performance Optimization
Performance Optimization
Efficient image handling and deliveryUpload Optimization
- Compression: Automatic image compression to reduce upload time
- Progressive Upload: Chunked upload for large images
- Background Processing: Upload continues even if app is backgrounded
- Retry Logic: Smart retry mechanisms for failed uploads
- Efficient Loading: Load images on-demand to conserve memory
- Cache Management: Intelligent caching for frequently viewed images
- Thumbnail Usage: Use thumbnails for list views and previews
- Memory Cleanup: Automatic cleanup of unused image data
- Adaptive Quality: Adjust image quality based on network conditions
- Batch Operations: Group multiple image operations when possible
- CDN Integration: Leverage content delivery networks for fast access
- Offline Support: Cache images for offline viewing
- Lazy Loading: Load images as they come into view
- Placeholder Images: Show placeholders while images load
- Smooth Animations: Optimize transitions and loading animations
- Error States: Graceful handling of failed image loads
Example: Optimized Loading
Related Features
File Messages
Document sharing
Send files, documents, and attachments
Video Messages
Video content
Share video clips and recordings
Image Handling Guide
Technical details
Deep dive into image processing and optimization
Implementation Strategy: Start with basic image messaging using platform-specific patterns (unified upload for mobile, two-step for web), then add features like captions, metadata, and threading. Always implement proper progress feedback and error handling for optimal user experience.