Skip to content

qoi: write support

Mirco Miranda requested to merge mircomir/kimageformats:qoi_write_support into master

As a base I used the reference implementation found on the official site at https://qoiformat.org/ (MIT license). I added a class to convert scan lines in scanlineconverter.cpp. The class takes advantage of the QImage conversion and contrary to what one might expect, with large images it improves performance (compared to converting the whole image) 😄

In progressive mode, for each line, the following conversions (only if needed) are made before saving:

  1. If the icc profile is set, the line is converted to sRGB or sRGB Linear.
  2. The line is scaled to 8 bits with RGBA order.
Edited by Mirco Miranda

Merge request reports