Read or write the thumbnail embedded in a JPEG image
-
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.
-
I think using QExifImageHeader is the best solution.
http://www.sigvdr.de/Code/QExifImageHeader/QExifImageHeader.html
-
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 ?
-
-
Ok , thanks
I will check it. -
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 ?