Image Type and Size RequirementsGuidelines for Captured ImagesSupported ID TypesCautions
Image Requirements
Supported Formats
- JPEG/JPG: Most commonly used format
- PNG: Good for images with transparency
- Base64 Encoding: Required for API submission
Image Quality Guidelines
Resolution Requirements
- Minimum Resolution: 640x480 pixels
- Recommended Resolution: 1920x1080 pixels or higher
- Maximum File Size: 10MB
Image Capture Best Practices
- Good Lighting: Ensure adequate lighting to avoid shadows
- Clear Focus: Image should be sharp and in focus
- Complete Document: Capture the entire ID document
- No Obstructions: Avoid fingers, reflections, or other objects covering the document
- Proper Angle: Capture from a straight angle, not tilted
Supported ID Types
Government-Issued IDs
- Passports: All countries
- National ID Cards: Most countries
- Driver’s Licenses: Most countries
- Residence Permits: Various countries
Business Documents
- Corporate Registration: Business registration documents
- Tax Documents: Official tax-related documents
Important Cautions
Image Processing
- Base64 Encoding: Remove MIME type prefix before sending
- No Compression: Avoid excessive compression that reduces quality
- Original Format: Use original image format when possible
Security Considerations
- Data Protection: Ensure secure transmission of sensitive documents
- Temporary Storage: Don’t store images longer than necessary
- Access Control: Implement proper access controls for document images
Common Issues to Avoid
- Blurry Images: Ensure camera is stable and focused
- Poor Lighting: Avoid overexposure or underexposure
- Incomplete Documents: Capture the entire document
- Reflections: Avoid glare from lighting or camera flash
- Cropped Content: Ensure all text and images are visible
Technical Specifications
Base64 Encoding Example
File Size Optimization
- Compression: Use appropriate compression to balance quality and size
- Resolution: Choose appropriate resolution for your use case
- Format: JPEG typically provides good compression for photos
Testing Recommendations
Pre-submission Checklist
- Image meets minimum resolution requirements
- Document is fully visible and readable
- Image is properly focused and well-lit
- Base64 encoding is correct (no MIME type)
- File size is within limits
- Image format is supported
Quality Assessment
- Text Readability: All text should be clearly readable
- Image Clarity: Document images should be sharp
- Color Accuracy: Colors should be accurate and not washed out
- No Artifacts: Image should be free of compression artifacts