[Development] Color Profile support on Qt

alexandros.dermenakis at nokia.com alexandros.dermenakis at nokia.com
Mon Jul 16 16:31:25 CEST 2012


Hi,

I am working on adding support for color profiles on Qt 5. It is under discussion if the default behavior of QImage shall be:

1) converting from an embedded color profile to the screen color profile when loading an image
OR
2) keep the loaded image in the source color space, until the programmer explicitly requests color conversion.

Solution 1 : QImage(xxxx, QColorProfile = Preserve_Embedded)
* Keeps the old Qt behavior (providing backwards compatibility without the need of tweaking the code)

Solution 2 : QImage(xxxx, QColorProfile = Convert_To_Screen)
* Fixes some "bugs" in applications that use QImage directly for visualizing images (i.e. okular)
* Better for newly developed applications since color profile conversion takes place automatically
Presently when an image is loaded it always gets interpreted as sRGB and no color conversion takes place.

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120716/a6f21f40/attachment.html>


More information about the Development mailing list