# Long Image

> Design a whole webpage or a product detail page as one very tall picture from a prompt, with an optional style picture or one to three product photos.

Source: https://nodaro.ai/docs/nodes/image/long-image

The **Long Image** node designs a whole page as one very tall picture, from a prompt. It has two modes: **Webpage design** draws any page you describe, and **Product page** draws the detail page of a shop listing from one to three pictures of your product. The result is one image, far taller than it is wide.

- Found in: Image › Create
- Output: image
- API type: `long-image`

## When to use it
- You want a mockup of a landing page, a portfolio, a menu or any other web page, from top to bottom, in one picture.
- You want the look of an existing page. Wire a picture of it into **Style image**, and the new page borrows its look and layout.
- You sell a product and need a detail page for the listing. Wire one to three product photos, and the node builds the page section by section around them.
- You need one tall picture instead of a set of separate images. For single images, use [Generate Image](https://nodaro.ai/docs/nodes/image/generate-image).

## Quick start
### Add the node

Press Tab on the canvas and choose **Image › Create › Long Image**.

### Choose the mode

Open the settings panel and choose a **Mode**: **Webpage design** or **Product page**. For a product page, also choose a **Page length**.

### Write the prompt and wire the pictures

Write the prompt in the settings panel, or wire a [Text](https://nodaro.ai/docs/nodes/automate/text) node into **Prompt**. For a product page, wire one to three [Upload Image](https://nodaro.ai/docs/nodes/image/upload-image) nodes into **Product image 1**, **2** and **3**. For a webpage design, you can wire a **Style image** and a **Subject image**.

### Run it

Click **Run**. The node shows the top of the page. Open the result to see the whole page.

Workflow: A product photo and a prompt become one tall product detail page.

- Upload Image → Long Image (product image 1)
- Text → Long Image (prompt)

## Inputs
| Input | Accepts | What it does |
| --- | --- | --- |
| **Prompt** | Text nodes | What to make, up to 20,000 characters. Wired text replaces the prompt typed in the settings panel. A prompt is required, typed or wired. |
| **Product image 1**, **2**, **3** | Image nodes | **Product page** only. The product pictures. A product page needs at least one. |
| **Style image** | Image nodes | **Webpage design** only. A picture whose look and layout the page borrows. Optional. |
| **Subject image** | Image nodes | **Webpage design** only. A picture whose subject is kept in the page. Optional. |

The pictures are sent as JPEG or PNG. A picture in another file type is converted first.

- **Product pictures** must be at least 300 pixels on each side and between `2:5` and `5:2` in shape. A smaller picture is enlarged. A picture of another shape fails the run after it starts, the error names the picture, and the credits are refunded.
- **Pictures for the other mode** are not sent, and the run is not charged for them. The settings panel says so, for example "Pictures wired to the product inputs are not sent in Webpage design."
- **A wired input with no picture** stops the run before anything is charged, and the error names the input. This happens when the connected node has not run yet or has failed.

### Name the pictures in the prompt

The prompt can point at each picture by name:

| Mode | Name | Picture |
| --- | --- | --- |
| **Product page** | `@image_1`, `@image_2`, `@image_3` | The pictures wired into **Product image 1**, **2** and **3** |
| **Webpage design** | `@style` | The picture wired into **Style image** |
| **Webpage design** | `@subject` | The picture wired into **Subject image** |

Each product name follows the input its picture is wired to. With pictures in **Product image 1** and **3** only, `@image_3` still names the picture in **Product image 3**. A picture wired into two inputs is sent once.

Any other `@` before a letter, a digit or `_` is sent as the full-width `＠` sign. This covers an e-mail address such as `hello@shop.com`, a handle such as `@shop`, and a name for a picture the run does not send. The model does not read the full-width sign as the name of a picture, so the page still shows the sign.

## Outputs
The output, **Image**, is the long picture. Its size and its file type, PNG or JPEG, are what the model returns. A picture over the size limit for stored images is re-encoded to fit.

## Settings
| Setting | What it does |
| --- | --- |
| **Mode** | **Webpage design** (the default) or **Product page**. |
| **Page length** | **Product page** only. **Short** (about 2–5 sections), **Medium** (about 6–10, the default) or **Long** (about 11–18). The sections are parts of the one picture, not separate images. |
| **Size** | `1K` or `2K` (the default). |
| **Prompt** | What to make, up to 20,000 characters. |

### In a published app

An app built on a workflow with this node can let its users choose the **Size** (`1K` or `2K`) and, for a product page, the **Page length** (**Short**, **Medium** or **Long**). Any other value is refused before the run starts. See [Apps](https://nodaro.ai/docs/apps).

## Credits
A run is charged by its mode, its page length (on a product page), its size and how many pictures it sends. The **Run** button and the settings panel show the price for the pictures wired now.

A webpage design without pictures:

| Mode | 1K | 2K |
| --- | --- | --- |
| **Webpage design** | 273 credits | 296 credits |

A product page with one product picture:

| Page length | 1K | 2K |
| --- | --- | --- |
| **Short** | 119 credits | 142 credits |
| **Medium** | 235 credits | 274 credits |
| **Long** | 390 credits | 428 credits |

Each picture sent adds a little:

| Example | Charged |
| --- | --- |
| Webpage design at 2K with a style picture | 297 credits |
| Webpage design at 2K with a style and a subject picture | 300 credits |
| Product page, Medium, 2K, with three product pictures | 278 credits |
| Product page, Long, 1K, with two product pictures | 391 credits |

A run makes one picture and is charged when it starts. A run that fails is refunded, including a run whose picture cannot be saved. A workflow estimate or a published app's price counts each wired picture input of the mode. An estimate made without the workflow's connections counts the most pictures the mode can send: two for a webpage design and three for a product page. That estimate is never below the price of the run.

## Tips
- **Describe the sections in order.** List the parts of the page from top to bottom, for example "hero, how it works, plans, reviews and a footer". The node draws the whole page in one pass.
- **Name every picture in the prompt.** Write `@image_1` or `@style` where the picture belongs, for example "a product page for @image_1 on a clean white background".
- **Match the page length to the product.** A simple product reads well on a **Short** page. Use **Long** when you have many features to show.
- **Start at 1K.** Try the layout at `1K`, then run the final page at `2K`.
- **Add a logo or exact text afterwards.** Wire the result into [Image Overlay](https://nodaro.ai/docs/nodes/image/image-overlay) to place a real logo file or exact text on the page.

## Troubleshooting
**The run stops before it starts and names an input.** A picture input is wired, but the connected node has no picture. Run that node first, or fix it if it failed.

**A product page fails and names a picture.** The picture is narrower or wider than `2:5` to `5:2`. Crop it in [Upload Image](https://nodaro.ai/docs/nodes/image/upload-image) and run again. The failed run is refunded.

**A picture you wired is not in the page.** The picture is wired into an input of the other mode. Product inputs are not sent in **Webpage design**, and the style and subject inputs are not sent in **Product page**.

**A product page is refused with no product picture.** A product page needs at least one picture in **Product image 1**, **2** or **3**.

## From the API
`POST /v1/long-image` queues a run and answers with a `jobId`. The body takes `mode` (`webpage` or `ecommerce`), `prompt`, `resolution` (`1K` or `2K`), and `length` (`short`, `medium` or `long`, product page only). A product page sends `productImageUrls`, one to three picture links, where the first is `@image_1`. An entry can be `null` to keep the numbering of the pictures after it. A webpage design sends `styleImageUrl` and `subjectImageUrl`.

A request that mixes the fields of the two modes, has an empty prompt, or is a product page with no product picture answers `400` before any credits are held. An `Idempotency-Key` header makes a retry answer with the job the first request started. `POST /v1/quote` with `{ "type": "long-image", "params": { … } }` prices a request without running it. The finished job's `output_data.imageUrl` is the picture. See [Run a single node](https://nodaro.ai/docs/developers/api/nodes).

## Frequently asked questions

### What does the Long Image node make?

One very tall picture of a whole page, top to bottom. In Webpage design mode it draws a landing page, a portfolio, a menu or any page you describe. In Product page mode it draws a product detail page, section by section, from one to three pictures of your product.

### How many credits does Long Image cost?

A webpage design costs 273 credits at 1K and 296 credits at 2K without pictures. A medium product page at 2K with one product picture costs 274 credits. Each picture you send adds a little, and the Run button shows the exact price.

### Does a product page come out as several images?

No. The sections of a product page are parts of one picture. Page length sets how many sections that one picture holds, from about 2 to about 18.

### How do I point at a picture in the prompt?

In Product page mode, write @image_1, @image_2 and @image_3 for the pictures wired into Product image 1, 2 and 3. In Webpage design mode, write @style for the style picture and @subject for the subject picture.

### What happens to an e-mail address or a handle with @ in my prompt?

Any other @ before a letter, a digit or an underscore is sent as the full-width ＠ sign. The model does not read it as the name of a picture, and the page still shows the sign.
