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. Solved Open Image problem Qt 5.5

Solved Open Image problem Qt 5.5

Scheduled Pinned Locked Moved General and Desktop
qimageload
10 Posts 4 Posters 4.3k Views
  • 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.
  • R Offline
    R Offline
    red_spider
    wrote on 21 Sept 2015, 13:46 last edited by red_spider
    #1

    QImage *m_checkPreviewSize = new QImage("H:/untitled1000000000000000000.jpg");
    qDebug() << "check size" << m_checkPreviewSize->width();

    If this code is to build Qt 5.4 Image load....
    If this code is to build Qt 5.5 return "check size 0"
    I can not understand what is wrong ... maybe something changed in version 5.5
    tested Windows 7 Qt MinGW version

    Fix Version 5.5.1

    F 1 Reply Last reply 23 Sept 2015, 10:06
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 Sept 2015, 22:03 last edited by
      #2

      Hi,

      What do you get with:

      qDebug() << QImageReader::supportedImageFormats();
      

      ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        red_spider
        wrote on 22 Sept 2015, 06:09 last edited by
        #3

        hi, thank responded

        ("bmp", "cur", "dds", "gif", "icns", "ico", "jp2", "jpeg", "jpg", "mng", "pbm", "pgm", "png", "ppm", "svg", "svgz", "tga", "tif", "tiff", "wbmp", "webp", "xbm", "xpm")

        last checked on Linux and Qt 5.5, everything works.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 22 Sept 2015, 20:56 last edited by
          #4

          What kind of image is that ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • R Offline
            R Offline
            red_spider
            wrote on 23 Sept 2015, 09:20 last edited by
            #5

            this image used test Link
            its render program blender, do not understand why running version 5.4 and version 5.5 does not work.

            1 Reply Last reply
            0
            • R red_spider
              21 Sept 2015, 13:46

              QImage *m_checkPreviewSize = new QImage("H:/untitled1000000000000000000.jpg");
              qDebug() << "check size" << m_checkPreviewSize->width();

              If this code is to build Qt 5.4 Image load....
              If this code is to build Qt 5.5 return "check size 0"
              I can not understand what is wrong ... maybe something changed in version 5.5
              tested Windows 7 Qt MinGW version

              Fix Version 5.5.1

              F Offline
              F Offline
              Franckynos
              wrote on 23 Sept 2015, 10:06 last edited by
              #6

              @red_spider said:

              QImage *m_checkPreviewSize = new QImage("H:/untitled1000000000000000000.jpg");
              qDebug() << "check size" << m_checkPreviewSize->width();

              Hi,

              I think your render program blender don't write correctly your image.

              I put some pixel with "paint" saved it.

              I have the size of image:
              check size QSize(900, 900)

              M 1 Reply Last reply 23 Sept 2015, 10:37
              0
              • F Franckynos
                23 Sept 2015, 10:06

                @red_spider said:

                QImage *m_checkPreviewSize = new QImage("H:/untitled1000000000000000000.jpg");
                qDebug() << "check size" << m_checkPreviewSize->width();

                Hi,

                I think your render program blender don't write correctly your image.

                I put some pixel with "paint" saved it.

                I have the size of image:
                check size QSize(900, 900)

                M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 23 Sept 2015, 10:37 last edited by
                #7

                as @Franckynos says the image is not 100% correct.
                If you use http://regex.info/exif.cgi
                you see that it reports
                funny JFIF info (Resolution 1 pixels/None) (normally 72 pixels/inch)
                and has an unknown APP1 segment.
                Not sure what part that makes Qt not load
                it but I get same results as you on win 7 with 5.5

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  red_spider
                  wrote on 23 Sept 2015, 10:49 last edited by
                  #8

                  yes but 5.4 no problems, tried to copy qjpeg.dll from 5.4 to 5.5 and it worked, that there were some changes in qjpeg.dll 5.5

                  M 1 Reply Last reply 23 Sept 2015, 11:16
                  0
                  • R red_spider
                    23 Sept 2015, 10:49

                    yes but 5.4 no problems, tried to copy qjpeg.dll from 5.4 to 5.5 and it worked, that there were some changes in qjpeg.dll 5.5

                    M Offline
                    M Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on 23 Sept 2015, 11:16 last edited by mrjj
                    #9

                    @red_spider
                    Yeah its seems so. Also none of my image viewers have any issues with
                    the file so it seems a bit harsh that 5.5 dont even load it.
                    Could be a bug though.
                    https://bugreports.qt.io/browse/QTBUG-12034?jql=text ~ "jpeg"

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 25 Sept 2015, 14:15 last edited by
                      #10

                      There seems to be a regression in 5.5.0 that's been fixed for 5.5.1. See this bug report

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      5/10

                      23 Sept 2015, 09:20

                      • Login

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