mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-10-23 06:38:52 -04:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user