mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-19 12:14:20 -04:00
Metadata and image resolution write test
The goal of MR is to control the correct saving of metadata and resolution in plugins that support them. - Modified the basic write test to verify that resolution and metadata are saved correctly. - Verifies the correct functioning of MicroExif in plugins that use it to save metadata. - EXR: fixed wrong vertical resolution (error found with this MR). - Added EXR, JXR, JXL, PCX metadata test.
This commit is contained in:
@ -535,7 +535,7 @@ static void setMetadata(const QImage &image, Imf::Header &header)
|
||||
|
||||
if (image.dotsPerMeterX() && image.dotsPerMeterY()) {
|
||||
header.insert("xDensity", Imf::FloatAttribute(image.dotsPerMeterX() * 2.54f / 100.f));
|
||||
header.insert("pixelAspectRatio", Imf::FloatAttribute(float(image.dotsPerMeterX()) / float(image.dotsPerMeterY())));
|
||||
header.insert("pixelAspectRatio", Imf::FloatAttribute(float(image.dotsPerMeterY()) / float(image.dotsPerMeterX())));
|
||||
}
|
||||
|
||||
// set default chroma (default constructor ITU-R BT.709-3 -> sRGB)
|
||||
|
Reference in New Issue
Block a user