Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132875

CMYK to RGB conversion on big endian produces significantly wrong colors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • 6.8.2, 6.9.0 Beta2, 6.10.0 FF
    • 6.8.1
    • Image formats
    • None
    • Linux/X11
    • 7ad2083ec (dev), 4d34eee36 (6.9), 4a451597f (6.8)

    Description

      Conversion from TIF (CMYK) to BMP (RGB) produces different output depending on architecture.

      Source file:

      cmyk8.tif

      This is result (looks OK) on amd64:

      However, on PowerPC, the colors are significantly different.

       

      I suspect that QImage::convertToFormat doing wrong conversion.

      I use following simple program to reproduce the problem with conversion from TIF->BMP:

      https://invent.kde.org/frameworks/kimageformats/-/blob/master/tests/imageconverter.cpp

      ./bin/imageconverter cmyk8.tif output.bmp

      Attachments

        1. mm_cmyk8.tif
          191 kB
        2. cmykprint.cpp
          2 kB
        3. cmyk8_convertedBE.bmp
          cmyk8_convertedBE.bmp
          27 kB
        4. cmyk8_converted_amd64.bmp
          cmyk8_converted_amd64.bmp
          27 kB
        5. cmyk8.tif
          128 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-132875
          # Subject Branch Project Status CR V

          Activity

            People

              peppe Giuseppe D'Angelo
              novomeskyd Daniel Novomesky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes