Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. TIFF file problems in qt6

TIFF file problems in qt6

Scheduled Pinned Locked Moved Solved Qt 6
7 Posts 3 Posters 1.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.
  • L Offline
    L Offline
    leuat
    wrote on 12 Jan 2021, 11:40 last edited by
    #1

    Hi there!

    In qt5+, I had no problems opening (non-tiled) regular TIFF files. We have a software that opens all png, jpg and tiff files in a directory - and that works just fine on qt5.

    When upgrading to qt6, tiff files that are loaded (img.load("blah.tiff")) will have a reported size of (0,0). No warnings or errors are issued. Using qt6.0.0 desktop (windows MSVC 2019, macOS clang) provided from the maintenance tool downloader.

    Any ideas?

    ^Leuat

    A 1 Reply Last reply 12 Jan 2021, 13:50
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 12 Jan 2021, 12:02 last edited by
      #2

      Can you provide a small tiff file to reproduce the issue? Maybe open a bug report and assign it to me.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      L 1 Reply Last reply 12 Jan 2021, 20:43
      0
      • L leuat
        12 Jan 2021, 11:40

        Hi there!

        In qt5+, I had no problems opening (non-tiled) regular TIFF files. We have a software that opens all png, jpg and tiff files in a directory - and that works just fine on qt5.

        When upgrading to qt6, tiff files that are loaded (img.load("blah.tiff")) will have a reported size of (0,0). No warnings or errors are issued. Using qt6.0.0 desktop (windows MSVC 2019, macOS clang) provided from the maintenance tool downloader.

        Any ideas?

        A Offline
        A Offline
        artwaw
        wrote on 12 Jan 2021, 13:50 last edited by artwaw 1 Dec 2021, 13:51
        #3

        @leuat Hi, there is optional plugin imageformats (available for download via the Maintenance Tool) - it is provided as source code only and you need to build it in order to use it. Have you done that?

        EDIT: re TIFF support

        For more information please re-read.

        Kind Regards,
        Artur

        L 1 Reply Last reply 12 Jan 2021, 20:53
        0
        • C Christian Ehrlicher
          12 Jan 2021, 12:02

          Can you provide a small tiff file to reproduce the issue? Maybe open a bug report and assign it to me.

          L Offline
          L Offline
          leuat
          wrote on 12 Jan 2021, 20:43 last edited by
          #4

          @Christian-Ehrlicher https://file-examples-com.github.io/uploads/2017/10/file_example_TIFF_1MB.tiff standard tiff example!

          ^Leuat

          1 Reply Last reply
          0
          • A artwaw
            12 Jan 2021, 13:50

            @leuat Hi, there is optional plugin imageformats (available for download via the Maintenance Tool) - it is provided as source code only and you need to build it in order to use it. Have you done that?

            EDIT: re TIFF support

            L Offline
            L Offline
            leuat
            wrote on 12 Jan 2021, 20:53 last edited by
            #5

            @artwaw ah, thanks - that was .. unexpected. I'll see if I can make it work on a windows pc when I'm back at work, I'm currently on Apple M1 and have built qt 6.0.0 from scratch for ARM (same issue is here as well). Some questions then:

            a) Will the image formats plugin be available pre-compiled as a plugin download in the future? My software package(s) is (are) deployed to windows/linux/macOS (x86 + arm), which means there will be a hell of a lot of stuff to maintain / compile up. Right now, I'm having enough trouble with ARM stuff + getting Qt6 to work as it is

            b) It would be nice if trying to use a non-installed plugin in qt6 would yield an error / warning instead of simply.. doing nothing. This error fell completely through our testing, as we weren't aware of the problem until several users started reporting garbage 128-byte empty tiff files everywhere.

            Anyway for now we're considering rolling back to qt5 unless I get the image plugin working. Thanks for the reply!

            (and to compensate for the negative vibe : qt is awesome. I wouldn't have been able to do all this stuff without your amazing framework!)

            ^Leuat

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 12 Jan 2021, 21:13 last edited by
              #6

              They will be provided once they're ported to CMake.
              Currently there is no reason to use Qt6.0 at all due to such incomplete stuff.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              1
              • L Offline
                L Offline
                leuat
                wrote on 14 Jan 2021, 21:47 last edited by
                #7

                FYI the problem was resolved after manually compiling up the imageformats package + adding it to the build dir. For future references: please make sure that if you try to load an image file that is currently not supported, then provide some sort of feedback to the user (developer)!

                ^Leuat

                1 Reply Last reply
                2

                7/7

                14 Jan 2021, 21:47

                • Login

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