Skip to main content
Pass a state saved by Pintura to the state prop as it is, and the photo opens with its geometry.

Open a Pintura State

No conversion step is needed. A state without a version field is read as a Pintura state.

What Is Kept

The parts that map one to one onto Embed Editor open as they were. On a photo over 16.7 MP, the crop and areas land on the same region of the editor’s working copy. See Large photos.

What Is Dropped

A photo saved with a Pintura filter, adjustments or frame opens without them. The person sees the crop and redactions, and can reapply the look with the editor’s own tools.
More than 64 redactions is an INVALID_STATE error, as for any saved state.

After the First Save

The next Save writes the photo’s state as an EditState with version 3. Store it in place of the Pintura state. From then on the photo reopens with every edit. See Saved state.

Output Quality

outputQuality runs from 0 to 100, default 90. Multiply a Pintura quality of 0 to 1 by 100.

Saved State

Store and reopen edits.

State Reference

Every field of EditState.