Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.8.2
-
None
Description
PNG Spec 1.5 supports Exif data.
https://ftp-osl.osuosl.org/pub/libpng/documents/pngext-1.5.0.html#C.eXIf
macOS preview and GIMP support this metadata.
It would be nice if QImageIOHandler would support PNG Exif.
//Load the image QImageReader imageReader(fileName); //This return false for PNG but true for jpeg qDebug() << "Transfrom supported:" << imageReader.supportsOption(QImageIOHandler::ImageTransformation); imageReader.setAutoTransform(true); //This doesn't automatically rotate png images with Exif
You can create a rotated PNG image with this:
exiftool -Orientation="Rotate 90 CW" my_test.png