@Christian-Ehrlicher Aha! Thanks, good to know. I guess that explains this, then:
>>> from PyQt5 import QtCore, QtGui
>>> i = QtGui.QImage("/tmp/front3.jpg")
>>> m = QtGui.QImage("/tmp/mask.png")
>>> m = m.convertToFormat(QtGui.QImage.Format_Alpha8)
>>> i.setAlphaChannel(m)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'QImage' object has no attribute 'setAlphaChannel'
>>> QtCore.PYQT_VERSION_STR
'5.14.2'
>>> QtCore.QT_VERSION_STR
'5.14.2'
Ooh. Then again, maybe not. Looks like Riverbank didn't get a memo. (After installing from the latest wheels...):
>>> from PyQt5 import QtCore, QtGui
>>> i = QtGui.QImage("/tmp/front3.jpg")
>>> m = QtGui.QImage("/tmp/mask.png")
>>> m = m.convertToFormat(QtGui.QImage.Format_Alpha8)
>>> i.setAlphaChannel(m)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'QImage' object has no attribute 'setAlphaChannel'
>>> QtCore.QT_VERSION_STR
'5.15.2'
>>> QtCore.PYQT_VERSION_STR
'5.15.2'
Welp, I've got a bug report to file. Thanks for the help!