roniemartinez / libqpsd

PSD (Photoshop Document) & PSB (Photoshop Big) Plugin for Qt/C++ (Qt4/Qt5)
GNU Lesser General Public License v2.1
108 stars 25 forks source link

Fix QImage format on Qt 5.10+ #19

Closed stepanp closed 6 years ago

stepanp commented 6 years ago

On Qt 5.10 .psd files with 8-bit RGB with Alpha reads as QImage QImage::Format_RGB32, i.e. without transparency. I don't know why it works on previous Qt versions

roniemartinez commented 6 years ago

Hi @stepanp

Does this fix work on older versions, too?

Edit: By checking the code, I believe that this fix should be the correct one. I can't verify it though since I don't have an Qt environment on my laptop.