Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.6.3, 6.7.2
-
None
-
0dfb177b4 (dev), 1a787500b (6.8), 30512b70e (6.7), 034dc8983 (tqtc/lts-6.5)
Description
Saving WebP detaches the QImage when using WebP API. `.bits()` is called instead of `.constBits()` which leads to worse performance when QImage is already in required format.
Moreover if we have custom (larger) bytes per line, after detaching the image will be copied to a smaller bytes per line (additional data padding removed), so it'll crash (the bytes per line is read and passed to WebP API before detaching).