···21212222To make your first postcard file you should scan both sides of your postcard, its "components".
23232424-> [!NOTE]
2525-> JPG, PNG and TIFF formats are all supported, but JPG may lose quality, and some scanning software's TIFF format isn't compatible with this software.
2424+- Use a scanner (for accurate resolution info)
2525+- Use a black background (as black as possible, to minimise shadows)
2626+- Save your scan as a PNG (For quality, and because Go doesn't support macOS' TIFF encoding)
26272728> [!TIP]
2828-> Taking a photo will work, but a scanner won't produce reflections or add perspective to your postcard, and can provide accurate information about its physical size — which you'd have to add manually otherwise.
2929+> There is an experimental web-based postcard creator at [create.dotpostcard.org](https://create.dotpostcard.org), which you may find easier.
29303030-Pick a suitable short name for your postcard, eg. `pyramid`.
3131+Pick a name for your postcard, eg. `pyramid`, and name your scans `{name}-front.png` and `{name}-back.png` (or `{name}-only.png` if you're only producing a single sided card).
31323232-> [!TIP]
3333-> Using only a-z, 0-9, hyphens, and underscores is smart as this will prevent issues moving your postcard between computers and ecosystems.
3434-3535-Name your two scans `{name}-front.{ext}` and `{name}-back.{ext}` (or `{name}-only.{ext}` if you're only producing a single sided card).
3636-3737-```sh
3838-$ ls
3939-pyramid-front.png
4040-pyramid-back.png
4141-```
4242-4343-Create a template metadata file & fill it out with the details of your postcard:
3333+Create a template metadata file & edit it to show the details of your postcard:
44344535```sh
4636$ postcards init pyramid
4737⚙︎ Generating 1 postcard metadata file…
4838Template (Metadata) → (Metadata) pyramid-meta.yaml
3939+4040+$ vi pyramid-meta.yaml
4141+4242+$ ls
4343+pyramid-back.png
4444+pyramid-front.png
4545+pyramid-meta.yaml
4946```
50475151-Now generate any other postcard format from this "component" format:
4848+Now you can generate any other postcard format from this "component" format:
52495350```sh
5454-$ postcards -f web,usdz,html,css pyramid-meta.yaml
5151+$ postcards -f usdz,web,html,css pyramid-meta.yaml
5552⚙︎ Converting 1 postcard into 4 different formats…
5653pyramid-meta.yaml (Component files) → (USDZ 3D model) pyramid.postcard.usdz
5754pyramid-meta.yaml (Component files) → (Web) pyramid.postcard.jpg
···68656966> [!IMPORTANT]
7067> Most formats can be converted between each other (web, usdz, component). If this is likely use the `--archival` flag to turn on lossless conversion so quality remains high until the final conversion.
7171-7272-## Under construction
7373-7474-This repo is in rapid development (and migration from a previous iteration at [dotpostcard/postcards-go](https://github.com/dotpostcard/postcards-go)) — please bear with me!