---
title: "Download the project Gantt chart as a single PNG image"
method: GET
path: "/reports/project/{id}/gantt.png"
tags: ["reports"]
---

# Download the project Gantt chart as a single PNG image

`GET /reports/project/{id}/gantt.png`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/reports/project/{id}/gantt.png`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

The same drawing as gantt.pdf, laid out on one page tall enough for every row and rasterized. The page size sets the image width (fit=tiled widens it to a legible day density instead of adding pages); the height grows with the row count. Refuses a schedule too tall for one image (422 PNG_TOO_LARGE, use the PDF) and answers 501 PNG_UNAVAILABLE on a deployment without the rasterizer. Same query options, visibility rule and rate limit as gantt.pdf.

## Path parameters

- `id` string, required

## Query parameters

- `token` string, required
- `pageSize` string
- `orientation` string
- `margins` string
- `scale` string
- `fit` string
- `table` string
- `from` string
- `to` string
- `baselineId` string
- `showCriticalPath` string
- `showDependencies` string
- `showBaseline` string
- `hideCompleted` string

## Headers

- `X-Organization-Id` string, required

## Response `200`

PNG file download; X-Gantt-Png-Width and X-Gantt-Png-Height carry the pixel size

## Other responses

- `400`: Invalid export options
- `404`: Project or baseline not found, or project not visible to the caller
- `422`: Too many tasks, or too many rows for one image
- `429`: Rate limited
- `501`: PNG rendering is not available on this deployment

---

[API](https://skmtc.dev/onplana/apis/onplana-api.md) · [All operations](https://skmtc.dev/onplana/apis/onplana-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onplana/apis/onplana-api/revisions/c3d6c89e9dc8?raw)
