> ## Documentation Index
> Fetch the complete documentation index at: https://developers.argosidentity.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Best Practice for Image

> Guidelines for optimal image quality and requirements for ID Liveness API

<Callout type="info">
  **Image Type and Size Requirements**

  **Guidelines for Captured Images**

  **Supported ID Types**

  **Cautions**
</Callout>

## 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

1. **Good Lighting**: Ensure adequate lighting to avoid shadows
2. **Clear Focus**: Image should be sharp and in focus
3. **Complete Document**: Capture the entire ID document
4. **No Obstructions**: Avoid fingers, reflections, or other objects covering the document
5. **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

```javascript theme={null}
// Correct format (remove MIME type)
const base64Image = "iVBORw0KGgoAAAANSUhEUgAA...";

// Incorrect format (includes MIME type)
const base64Image = "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAA...";
```

### 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
