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. Image reading from resource file giving warning
Forum Updated to NodeBB v4.3 + New Features

Image reading from resource file giving warning

Scheduled Pinned Locked Moved Solved General and Desktop
16 Posts 3 Posters 4.9k Views 2 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.
  • Pradeep KumarP Offline
    Pradeep KumarP Offline
    Pradeep Kumar
    wrote on last edited by
    #3

    Hi,

    Downloaded and Installed Magick, and used the

    command :

    magick "<source-path>\sample.png" "<destinatio-path>\sample.png".

    Now if i use the image which is present in destination path, i am not getting the above mentioned warning.

    Thanks,

    1 Reply Last reply
    0
    • Pradeep KumarP Offline
      Pradeep KumarP Offline
      Pradeep Kumar
      wrote on last edited by
      #4

      Can anyone tell the meaning of

      the iCCP chunk from the PNG image.

      ????

      Thanks,

      mrjjM 1 Reply Last reply
      0
      • Pradeep KumarP Pradeep Kumar

        Can anyone tell the meaning of

        the iCCP chunk from the PNG image.

        ????

        Thanks,

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by mrjj
        #5

        @Pradeep-Kumar said in Image reading from resource file giving warning:

        iCCP chunk from the PNG image.

        Its part of the format
        http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html#C.iCCP
        Its the color profile area.

        the warning comes from app like photoshop on windows adding a profile that libpng consider not ok.
        So it says to you "your image contains a known bad profile and i am warning you about it"
        Its not a Qt thing but the pnglib that does it.

        Been there for some years now :;)
        Read the links that @Ratzz provides.
        I also looked at in at some point.
        U can rebuild the png plugin and disable warning or use an image program to remove the (known) fault
        profile.
        Or simply ignore it. Colors looked fine for all RGB i tested.
        Also after upgrading to 5.7 i have not seen it since.
        Still use the same version of photoshop so something might have changed.
        (or they fixed photoshop) :)

        Pradeep KumarP 1 Reply Last reply
        3
        • mrjjM mrjj

          @Pradeep-Kumar said in Image reading from resource file giving warning:

          iCCP chunk from the PNG image.

          Its part of the format
          http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html#C.iCCP
          Its the color profile area.

          the warning comes from app like photoshop on windows adding a profile that libpng consider not ok.
          So it says to you "your image contains a known bad profile and i am warning you about it"
          Its not a Qt thing but the pnglib that does it.

          Been there for some years now :;)
          Read the links that @Ratzz provides.
          I also looked at in at some point.
          U can rebuild the png plugin and disable warning or use an image program to remove the (known) fault
          profile.
          Or simply ignore it. Colors looked fine for all RGB i tested.
          Also after upgrading to 5.7 i have not seen it since.
          Still use the same version of photoshop so something might have changed.
          (or they fixed photoshop) :)

          Pradeep KumarP Offline
          Pradeep KumarP Offline
          Pradeep Kumar
          wrote on last edited by
          #6

          @mrjj

          Thanks for the answer.

          command :

          magick "<source-path>\sample.png" "<destinatio-path>\sample.png".

          apart from the command is their any other way. to remove the chunks?.

          Thanks,

          mrjjM 1 Reply Last reply
          0
          • Pradeep KumarP Pradeep Kumar

            @mrjj

            Thanks for the answer.

            command :

            magick "<source-path>\sample.png" "<destinatio-path>\sample.png".

            apart from the command is their any other way. to remove the chunks?.

            Thanks,

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #7

            @Pradeep-Kumar
            there are tons of info on google
            http://www.imagemagick.org/discourse-server/viewtopic.php?t=22444
            But any method works as long as warning is removed.

            1 Reply Last reply
            1
            • Pradeep KumarP Offline
              Pradeep KumarP Offline
              Pradeep Kumar
              wrote on last edited by
              #8

              yep that command was one of the method where warnings was removed,
              i observed in linux , the app crashed because of warning, will it treat it as error in some paltforms?.

              Thanks,

              mrjjM 1 Reply Last reply
              0
              • Pradeep KumarP Pradeep Kumar

                yep that command was one of the method where warnings was removed,
                i observed in linux , the app crashed because of warning, will it treat it as error in some paltforms?.

                Thanks,

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #9

                @Pradeep-Kumar
                Hi
                no it should always be a warning.
                Should never cause a crash.
                That must be something else.

                1 Reply Last reply
                0
                • Pradeep KumarP Offline
                  Pradeep KumarP Offline
                  Pradeep Kumar
                  wrote on last edited by
                  #10

                  so hmmmm k , anyways thanks for the forum , and for the path to get the answers.

                  Thanks,

                  mrjjM 1 Reply Last reply
                  1
                  • Pradeep KumarP Pradeep Kumar

                    so hmmmm k , anyways thanks for the forum , and for the path to get the answers.

                    Thanks,

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    @Pradeep-Kumar
                    well thats the whole point of the forum :)
                    Good u like it.

                    Can you give one of the pngs that give s warning ?
                    (postimage.org)

                    I want to see if same profile as mine. ( from photoshop)

                    1 Reply Last reply
                    0
                    • Pradeep KumarP Offline
                      Pradeep KumarP Offline
                      Pradeep Kumar
                      wrote on last edited by
                      #12
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • Pradeep KumarP Offline
                        Pradeep KumarP Offline
                        Pradeep Kumar
                        wrote on last edited by
                        #13

                        how do you check the profile?.
                        can u explain and teach.

                        Thanks,

                        mrjjM 1 Reply Last reply
                        0
                        • Pradeep KumarP Pradeep Kumar

                          how do you check the profile?.
                          can u explain and teach.

                          Thanks,

                          mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #14

                          @Pradeep-Kumar
                          Hi
                          I use photoshop. It has full color management dialogs.
                          alt text

                          1 Reply Last reply
                          0
                          • Pradeep KumarP Offline
                            Pradeep KumarP Offline
                            Pradeep Kumar
                            wrote on last edited by
                            #15

                            the highlighted data is chuck in sample.png?

                            Thanks,

                            mrjjM 1 Reply Last reply
                            0
                            • Pradeep KumarP Pradeep Kumar

                              the highlighted data is chuck in sample.png?

                              Thanks,

                              mrjjM Offline
                              mrjjM Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on last edited by
                              #16

                              @Pradeep-Kumar

                              well its meta data. not the actual chunk but same information.
                              alt text

                              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