# analyzeImageFile

Audience: Developer

**Served by:** [file](https://docs.pyck.cloud/dev/api/services/file.md)

## Arguments

| Name | Type |
| --- | --- |
| `id` | ID! |

## Returns

[ImageAnalysisResponse](https://docs.pyck.cloud/dev/api/types/imageanalysisresponse.md)!

## Example

Runs image analysis on a previously uploaded file and stores the result as JSON data on the file record. The referenced file must be an image.

```graphql
mutation AnalyzeImageFile($id: ID!) {
  analyzeImageFile(id: $id) {
    jsonData
  }
}
```

**Variables**

```json
{
  "id": "<image file ID>"
}
```
