Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.4, 4.8.4
-
None
Description
I construct an 8-bit indexed QImage around an existing memory buffer, using the constructor that takes bytesPerLine argument. My image has width=6144, bytesPerLine=8192.
Then I call QImage::save() to save the image to BMP file.
The resulting BMP file does not look normal. I think QImage::save() does not handle bytesPerLine correctly.
I have written a small program, that demonstrates this problem. You will have to create a sample 8-bit indexed image, that has width=6144.
Attachments
For Gerrit Dashboard: QTBUG-30515 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
205358,3 | Fix saving QImage with longer than necessary bytes-per-line | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |