Write (duplicate) Exif to a Jpg
-
Hey all,
I'm starting a new project for resizing JPG pictures. Sound very easy with QImage, I managed to do that with a few lines of code. BUT the problem is that QImage does not keep the EXIF metadata of the original image. So I get a resized image but without its EXIF.
This is a big problem for me as a photographer. I have googled a lot this problem and I found the QExifImageHeader class that has a savetojpeg() function that works well on picture that already have their own exif but when I use this function on a resized jpeg without exif, I get a corrupt jpg file.
So I guess that QExifImageHeader can only modify the exifs of an image but not modify them.
Anybody tried this before? What can I do?
Thanks! -
I would like to use Exiv2 library which is in C++. How can I do that?
I'm using Qtcreator with Qt4.8.5 and MinGW on windows.
I have never used any external C++ library and I really don't know where to start. I heard to use DLL but I have no idea where to find these DLL neither how to install them with Qtcreator.
http://www.exiv2.org/download.htmlAny help?
-
Hi and welcome to devnet,
For your first question, I would suggest that you ask it on the interest mailing list, you'll find there Qt's maintainers/developers (this forum is more user oriented)
For the second, it's outside of the scope of this forum. However, you should start by searching something like "build exiv2 mingw" on your favorite search engine to find instructions for that.
Qt Creator helps you add libraries to your project, just right click on the project in the Projects explorer and select add a library, the rest is pretty straight forward.
Happy coding !