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. Read or write the thumbnail embedded in a JPEG image
Forum Updated to NodeBB v4.3 + New Features

Read or write the thumbnail embedded in a JPEG image

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 2.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.
  • L Offline
    L Offline
    lalvishnu12
    wrote on last edited by
    #1

    Hi,

    I am new to Qt. I want to know how to read or write the thumbnail embedded in JPEG image using Qt classes.

    I found that the “QMediaMetaData Namespace” contains the “ThumbnailImage” identifier containing the thumbnail data. But I didn’t get any examples related to that.

    Please help me to find a solution.

    1 Reply Last reply
    0
    • E Offline
      E Offline
      euchkatzl
      wrote on last edited by
      #2

      I think using QExifImageHeader is the best solution.

      http://www.sigvdr.de/Code/QExifImageHeader/QExifImageHeader.html

      https://qt.gitorious.org/qt-labs/seanharmers-scenegraph/source/9dead5efc0717a19eb56314c7f14479bcfadde4f:examples/photos/qexifimageheader.cpp

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lalvishnu12
        wrote on last edited by
        #3

        Thanks for the reply.

        It is not part of the Qt classes.
        It is an external library.

        I need to know , is it possible with any Qt Classes in Qt 5.4 ?

        1 Reply Last reply
        0
        • E Offline
          E Offline
          euchkatzl
          wrote on last edited by
          #4

          Because it is written in qt you can directly include QExifImageHeader in your project.
          So you do not have to include a library. Just copy these two classes into your project folder an add it to your project.

          I don't know any other possibility.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lalvishnu12
            wrote on last edited by
            #5

            Ok , thanks
            I will check it.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lalvishnu12
              wrote on last edited by
              #6

              Hai,

              I am using the * QExifImageHeader* .

              I can only set thumbnail for images with thumbnail already embedded in it. While I am setting the thumbnail , it replaces the existing one.

              Can't set the thumbnail for an image which don't have a thumbnail embedded in it and when I am trying to set that , the file become corrupted .

              is there any possible way to write thumbnail for images without an existing thumbnail using the QExifImageHeader class ?

              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