https://bugs.kde.org/show_bug.cgi?id=405366

            Bug ID: 405366
           Summary: Flatten image with alpha inheritance in python results
                    in a blank image.
           Product: krita
           Version: git master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Scripting
          Assignee: krita-bugs-n...@kde.org
          Reporter: griffinval...@gmail.com
  Target Milestone: ---

SUMMARY
While alpha inheritance merging using layer->flatten image now works, it
doesn't work with document.flatten().

STEPS TO REPRODUCE
Run this python script, open a file with alpha ineheritance in its layer stack:

------------------------------------------
from krita import *
from PyQt5.QtWidgets import QFileDialog

# Open a file, flatten it, add a view to the krita instance.
filename = QFileDialog.getOpenFileName(caption="Open File", filter="Krita files
(*.kra)")[0]
doc =  Application.openDocument(filename)
doc.waitForDone()


# Now we'll add a new view.

Application.activeWindow().addView(doc)

# Now we'll flatten
doc.flatten()
doc.waitForDone()

------------------------------------------

OBSERVED RESULT

Everything is blank


EXPECTED RESULT

Image, but flattened to a single layer.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to