Can I use Pintura Image Editor version 6 data with version 7?

We can convert Pintura Image Editor version 6 data with the legacyDataToImageState method.

import { openDefaultEditor, legacyDataToImageState } from './pintura.js';

const editor = openDefaultEditor({
    /* editor settings */
});

editor.on('load', ({ size }) => {
    editor.imageState = legacyDataToImageState(app, size, {
        /* Pintura Image Editor version 6 data here */
    });
});