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

ICO file loading fails if the file contain embedded PNG

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 4.6.3
    • Image formats
    • None

    Description

      I've created a .ico file with ImageMagick from several PNG files, including 256x256 images, which generate new vista-style .ico files with embedded PNG. Dependending on the order of the images in the file, Qt is unable to load even small images.

      I've attached two ico files created with the following ImageMagick command lines:

      convert 48.png 32.png 16.png 256.png 128.png ok.ico
      convert 256.png 128.png 48.png 32.png 16.png ko.ico
      

      With the ok.ico file, I can properly create a QIcon of 16x16 pixels. With ko.ico, I cannot create a QIcon.

      Attachments

        1. AppMan.ico
          355 kB
        2. ko.ico
          28 kB
        3. ok.ico
          28 kB
        4. qtbug18680_orig.zip
          2 kB
        5. qtbug18680.jpg
          qtbug18680.jpg
          39 kB
        6. qtbug18680.zip
          88 kB

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              jvuarand Jérôme Vuarand
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes