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
Forum Updated to NodeBB v4.3 + New Features

TIFF file problems in qt6

Scheduled Pinned Locked Moved Solved Qt 6
7 Posts 3 Posters 1.5k 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.
  • leuatL Offline
    leuatL Offline
    leuat
    wrote on 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

    artwawA 1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 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

      leuatL 1 Reply Last reply
      0
      • leuatL leuat

        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?

        artwawA Offline
        artwawA Offline
        artwaw
        wrote on last edited by artwaw
        #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

        leuatL 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

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

          leuatL Offline
          leuatL Offline
          leuat
          wrote on 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
          • artwawA artwaw

            @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

            leuatL Offline
            leuatL Offline
            leuat
            wrote on 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
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 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
              • leuatL Offline
                leuatL Offline
                leuat
                wrote on 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

                • Login

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