# allyhub image import

> Makes an image of a Photoshop file: a board an artboard (else its canvas), each layer of its kind (pixels, type, shape, adjustment, fill, group) with its blend, opacity, mask and effects, a picture a pixel layer in media/, the words in the script, the file kept in source/; says what it could not carry over as it is; never over a place that is taken

Source: https://allyhub.com/docs/reference/cli/image-import · AllyHub 0.10.0
Index of all docs: https://allyhub.com/llms.txt

## Usage

```bash
allyhub image import [file] [options]
```

## Arguments

| Argument | Type | What it is |
| --- | --- | --- |
| `<file>` | string | The .psd or .psb to make an image of |

## Options

| Option | Type | Default | What it does |
| --- | --- | --- | --- |
| `--to` | string |  | The image's module, from the project's root (default &lt;the file's name&gt;.ts); a person's changes are &lt;name&gt;.yaml beside it, its script &lt;name&gt;.&lt;lang&gt;.yaml, its pictures and the file as it was beside them under names no file there has |
| `--lang` | string | `"en"` | The language of its words: its script is &lt;name&gt;.&lt;lang&gt;.yaml |

## Global options

`--dir <value>`: the project's folder; default the one around where it is run. `--json`: print the result as JSON.

## Examples

```bash
allyhub image import ~/Downloads/poster.psd --to launch/poster.ts
allyhub image import 海报.psd --to posters/spring.ts --lang zh-cn
```

## Exit codes

`0` when it succeeds; the others are listed in [Exit codes](https://allyhub.com/docs/reference/cli/exit-codes.md).

## In the work

**images**: Making an image: boards of Photoshop's layers, a PSD in and out

`image import` → [`check`](https://allyhub.com/docs/reference/cli/check.md) → [`frames`](https://allyhub.com/docs/reference/cli/frames.md) → [`inspect layout`](https://allyhub.com/docs/reference/cli/inspect-layout.md) → [`inspect contrast`](https://allyhub.com/docs/reference/cli/inspect-contrast.md) → [`dev`](https://allyhub.com/docs/reference/cli/dev.md) → [`render`](https://allyhub.com/docs/reference/cli/render.md)
