Read or write the thumbnail embedded in a JPEG image
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.
Search for the QExifImageHeader class, it should contain what you need
Thanks for the reply.
I will try that.
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 ?
Seems like you're duplicating things.
Let's keep everything under only one thread.