Files
effectcraft/docs/photocraft-import.md
dotCooCoo bc527043b0 Import: limit only PhotoCraft reads to 512 MiB
Services::read_file and the media reader no longer refuse ZIP-based files
over 512 MiB, so large templates and dotLottie files read as before. A new
Services::read_pcraft applies the limit before reading, and the PhotoCraft
canvas check and composition import use it for .pcraft files; the browser
checks the stored size before copying. The media reader limits .pcraft
files before reading. A PhotoCraft bundle with another extension is still
refused after its read, before it is parsed.
2026-11-03 20:32:10 -08:00

3.3 KiB

Import PhotoCraft documents

Choose File ▸ Import ▸ File… and select a .pcraft document. Numbered PhotoCraft documents import individually, rather than as an image sequence.

Footage reads the document's saved composite as one still image. Its dimensions are the saved image's actual dimensions. The currently pinned shared reader exposes PhotoCraft's saved preview, which can be smaller than the canvas. Import reports both sizes when they differ. Full-resolution composite selection requires a later shared-reader update.

Composition creates a composition with canvas-sized layer footage. It preserves layer names, visibility, opacity, recognized blend modes and group nesting. Groups become precompositions; pass-through groups use Collapse Transformations. Raster layers and saved pixel caches for text, shapes and smart objects remain linked to the source file. Text, shapes and smart objects are imported as pixels, without their native editing controls.

Layer pixels decode when a frame needs them. Missing caches or unsupported pixel data produce media decoding errors when used. Layered import supports RGB and grayscale pixels with 8-bit, 16-bit or floating-point samples. Enabled raster masks apply their density and feather. Native effects, vector and group masks, and embedded color profiles are unsupported, so a layered composition can differ from the saved appearance. Choose Footage when that appearance matters.

The dialog offers Footage and Composition. The command API also accepts compositionLayerSizes, but reports that PhotoCraft layers retain the full canvas bounds. A drag preference for retaining layer sizes selects Composition in this dialog.

Command API

{"command":"file.import","params":{"paths":["/path/artwork.pcraft"],"importAs":"footage"}}

Use "importAs":"composition" for layers. Import uses the existing still-footage duration preference and creates one undoable import operation for each layered document. Compatibility messages accompany the command's import results.

Limits

PhotoCraft input is limited to 512 MiB. A .pcraft file is checked before it is read. A PhotoCraft bundle with another extension is checked after it is read and before it is parsed. Other ZIP-based files, such as templates and dotLottie files, do not have this limit. Decoded composites are limited to 16,777,216 pixels and layer canvases to 12,582,912 pixels. Composition import also respects EffectCraft's composition size limit, allows up to 4,096 layers and 16 levels of group nesting, and rejects unsupported CMYK or Lab layer data. Footage can still import a supported saved composite when the document's layers exceed those limits.

Unsupported layer kinds are skipped with a message naming the layer. A nonempty document with no supported pixel layers cannot import as a composition; the error recommends Footage. Invalid input reports an error before adding a composition.

Layer decoding has a separate limit of 12,582,912 canvas pixels, checked before reading source samples. A conservative budget counts the source, raw mask, mask image, both feathering intermediates and output together, within 1 GiB of working buffers. Larger canvases report an error recommending Footage before decoding layer pixels. This includes masked and unmasked layers; saved composites retain the 16,777,216-pixel limit.