> ## Documentation Index
> Fetch the complete documentation index at: https://docs.9pic.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Image Analysis

> Review and fix photos flagged for rotation correction during publish.

## Overview

**AI Image Analysis** finds photos that were captured at the wrong orientation and lets you correct them with AI. Rotated images are detected automatically during the **Publish** step, and this tool is where you review and fix them.

You reach it from **9Pic Photo → Tools → AI Image Analysis**.

<Frame caption="AI Image Analysis">
  <img src="https://assets.9pic.ai/docs/dashboard-guide/photos/ai-image-analysis.webp" alt="AI Image Analysis page showing the Process AI Image Rotation card and Rotation Records empty state" />
</Frame>

## How It Works

The page has three parts:

* A **Process AI Rotation** hero card with the main action button.
* A **Rotation Records** grid grouped into **Pending**, **Processing**, and **Skipped**.
* A **Processed Results** card grouped into **Completed** and **Failed**, shown once any image has been processed.

<Steps>
  <Step title="Publish first">
    Rotated images are only detected after the **Publish** step has run (processed or failed). Until then there are no records to review.
  </Step>

  <Step title="Review the records">
    Browse the **Pending** images. You can **Skip Selected** images you don't want corrected, and **Restore to Pending** anything you skipped earlier.
  </Step>

  <Step title="Process AI Rotation">
    Click **Process AI Rotation**, choose **Process All Pending** or a **Custom Count**, and confirm. Corrected images are rotated and re-uploaded to replace the originals.
  </Step>

  <Step title="Check results">
    Watch the **Completed** and **Failed** sections for the outcome. Retry failures if needed.
  </Step>
</Steps>

## Credits & Gating

<Warning>
  Each rotated image processed consumes **1 credit**, and the correction **cannot be undone** (the rotated file replaces the original). The confirm dialog shows your available credit balance and how many records you're about to process.
</Warning>

| Rule                   | Detail                                                                                       |
| ---------------------- | -------------------------------------------------------------------------------------------- |
| **Publish required**   | The **Process AI Rotation** button is disabled until the Publish step is processed or failed |
| **Custom count limit** | A custom run accepts between 1 and 100,000 records                                           |
| **Credit check**       | You can't start a run that would exceed your available credits                               |

## Skip and Publish Anyway

If the Publish step failed *because* of rotated images, you don't have to fix them first. From the [Photo Overview](/dashboard-guide/photos/overview) Publish card you can choose **Skip AI Analysis** to publish despite the flagged records, or **Open AI Analysis** to come here and correct them.

## Common Questions

<AccordionGroup>
  <Accordion title="The Process AI Rotation button is disabled.">
    The Publish step must be processed or failed first. Run Publish from the [Overview](/dashboard-guide/photos/overview) tab, then return here.
  </Accordion>

  <Accordion title="Does rotation change the original photo?">
    It replaces the displayed image with a correctly oriented version and re-uploads it. The source file in your storage is unchanged.
  </Accordion>

  <Accordion title="Why are some images skipped?">
    Skipped images are set aside and excluded from processing. Select them and click **Restore to Pending** to bring them back.
  </Accordion>

  <Accordion title="No records found.">
    Either no rotated images were detected, or the Publish step hasn't run yet. Rotated images are detected during Publish.
  </Accordion>
</AccordionGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="Photo Overview" icon="images" href="/dashboard-guide/photos/overview">
    Publish the event and trigger rotation detection.
  </Card>

  <Card title="Manual Tagging" icon="tag" href="/dashboard-guide/photos/manual-tagging">
    The other Tools entries — bib and context tagging.
  </Card>

  <Card title="Credits" icon="coins" href="/dashboard-guide/credits">
    Check your balance before running AI rotation.
  </Card>

  <Card title="Rotation issues" icon="rotate" href="/dashboard-guide/troubleshooting/rotation-issues">
    Troubleshoot photos that look sideways.
  </Card>
</CardGroup>
