https://bugs.kde.org/show_bug.cgi?id=418494
Bug ID: 418494 Summary: Document.exportImage doesn't export from the current state of the document Product: krita Version: 4.2.8 Platform: Appimage OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Scripting Assignee: krita-bugs-n...@kde.org Reporter: ioribranf...@gmail.com Target Milestone: --- Created attachment 126609 --> https://bugs.kde.org/attachment.cgi?id=126609&action=edit Python script and kra for reproducing bug SUMMARY When calling Document.exportImage, the exported image matches the document when it was opened, not the document in its current state. Any modifications made in script before the export do not apply. STEPS TO REPRODUCE 1. Extract attachment files to home directory 2. Open Python script in Krita Scripter (opens kra, hides one layer and exports to png) 3. Run script 4. Open exported png OBSERVED RESULT The PNG image was exported with the hidden layer still visible EXPECTED RESULT The PNG image should be exported with the hidden layer invisible SOFTWARE/OS VERSIONS Linux/KDE Plasma: Ubuntu Bionic ADDITIONAL INFORMATION - Workaround is to save, close, and reopen the document after modification and before export. Saving alone does not work. - The exact same actions performed in the GUI work as expected. -- You are receiving this mail because: You are watching all bug changes.