I resize a image, read source image's orientation, use setOption method write to new pixbuf and save.
srcPixbuf = new Pixbuf(/path/to/source/image);
string isRot = srcPixbuf.getOption("orientation");
writeln(isRot);
dstPixbuf = srcPixbuf.scaleSimple(nw, nh, InterpType.BILINEAR);
bool isOK = dstPixbuf.setOption("orientation", isRot);
if (isOK) {
dstPixbuf.savev("dst.jpg","jpeg",["quality"],["95"]);
} else {
writeln("set Option fail.");
}
read source image's orientation is 8, write orientation of dstpixbuf is successful and return true. But, read dst.jpg, it's orientation is null.
it's Not written?