diff --git a/src/imageformats/psd.cpp b/src/imageformats/psd.cpp index ff62b8b..5439eb0 100644 --- a/src/imageformats/psd.cpp +++ b/src/imageformats/psd.cpp @@ -1152,6 +1152,8 @@ bool PSDHandler::read(QImage *image) if (!cmds.palette.isEmpty()) { img.setColorTable(fixIndexedColorTable(cmds.palette)); setTransparencyIndex(img, irs); + } else if (img.format() == QImage::Format_Indexed8) { + img.setColorCount(256); } auto imgChannels = imageChannels(img.format());