https://bugs.kde.org/show_bug.cgi?id=388961
--- Comment #8 from Boudewijn Rempt <b...@valdyas.org> --- Ah, I don't know my own API. This script will do what you need (unless you have nested layers, then it needs to be rewritten a little): from krita import * d = Krita.instance().activeDocument() w = d.width() h = d.height() x = d.xOffset() y = d.yOffset() print(x, y, w, h) r = QRect(x, y, w, h) print(r) for n in d.topLevelNodes(): print (n, n.bounds()) b = n.bounds() r = r.united(b) print (r) d.resizeImage(r.x(), r.y(), r.width(), r.height()) -- You are receiving this mail because: You are watching all bug changes.