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 { legacyDataToImageState } from './pintura.js';

const app = openEditor({
    /* editor settings */
});

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