AVIF: added support to XMP and EXIF metadata

Allow to load/save info about:
- GPS info (latitude, longitude, altitude)
- Various text info (title, description, author, copyright, etc...)
- Image resolution

The compatibility of the modifications has been tested with GIMP.
This commit is contained in:
Mirco Miranda
2025-02-19 11:56:19 +00:00
parent bb1c6aab9e
commit 90d4256f3d
8 changed files with 180 additions and 4 deletions
+7
View File
@@ -1024,6 +1024,13 @@ MicroExif MicroExif::fromByteArray(const QByteArray &ba)
return fromDevice(&buf);
}
MicroExif MicroExif::fromRawData(const char *data, size_t size)
{
if (data == nullptr || size == 0)
return {};
return fromByteArray(QByteArray::fromRawData(data, size));
}
MicroExif MicroExif::fromDevice(QIODevice *device)
{
if (device == nullptr || device->isSequential())