korlibs-archive/korim

Image flipping problem, exif rotation and flipping support

lemkoleg opened this issue · 1 comments

There is an image whose width is less than height.
If I read the image and write it back, the image flips 90 °.

"
fun getImmage() {

    val fileName = resourcesVfs["SomeImage.jpg"]
    val image32 = fileName.readBitmap().toBMP32()
    val resfile = resourcesVfs["ResImage.jpg"]
    resfile.writeBytes(image32.encode(PNG))
}

"
11.zip