Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QImage::save(filename) bug on windows XP platfom
Forum Updated to NodeBB v4.3 + New Features

QImage::save(filename) bug on windows XP platfom

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 3.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jpdumont
    wrote on last edited by
    #1

    Hi,

    On big images 14592*14592 generated with my program written in the last version and different previous version of QT 4.7...
    the function QImage::save(filename) in RGB32 with a bmp format failed. On the same platform with the same image, QImage::save(filename) works with jpg format.

    I try the same code on linux32 and mac64 and the QImage::save function works with both formats
    I try too to open the windows genrated image on linux or mac and it's all black too. (the windows viewer is not reponsable)

    I compare the two bitmap (mac and Win) with ghex under ubuntu.
    File sizes (638,779,446 bytes) and bmp headers are similars but we can see that the image generated under windows is all black (NULL).

    Mac/Win/linux Image First Bytes (header) :
    42 4D 36 00 13 26 00 00 00 00 36 00 00 00 28 00 00 00 00 39 00 00 00 39 00 00 01 00 18 00 00 00 00 00 00 00 13 26 89 0B 00 00 89 0B 00 00 00 00 00 00 00 00 00 00

    After data are different:
    Win : 00 00 00 00 00 (all is null)....
    Mac : 53 62 4D 40 4F ....

    Best regards,

    Jean-Pierre Dumont

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jupiter
      wrote on last edited by
      #2

      well i think the problem is the size...

      you would need about the same size of free ram on the machine as a single block of free ram as the file size is.

      How much ram does your windows machine have? Linux and Mac have way better ram management.

      but its just a guess.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jpdumont
        wrote on last edited by
        #3

        thanks for answering ;-)

        my ubuntu say 3Go on my pc (linux and windows are on the same pc)
        I have try at home with a win seven 32bit with 4go, same problem...

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jpdumont
          wrote on last edited by
          #4

          I watch the code, the write is done line by line in the bmp handler, ie 14592*3 bytes at each time for this image isn't it ?
          It seem that the image is good in ram since the saving in jpeg format is working...

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jpdumont
            wrote on last edited by
            #5

            up ;-)

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #6

              If you think this is a bug in Qt, could you please try to create a small but complete test case so that the devs can easily reproduce the issue, and then report the issue in the "Jira bugtracker":http://bugreports.qt.nokia.com?

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jpdumont
                wrote on last edited by
                #7

                ok, I create this issue

                https://bugreports.qt.nokia.com/browse/QTBUG-22699

                regards

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved