Fix rotation implementation, no rotation when the given degree is not 90 180 or 270

This commit is contained in:
root 2024-06-20 20:36:39 +09:30
parent 69cd9c94d1
commit 66fa8d8559

View file

@ -49,10 +49,10 @@ class TransformImageImpl() : TransformImage {
180 -> LLJTran.ROT_180
270 -> LLJTran.ROT_270
else -> {
LLJTran.ROT_90
// no rotation if degree = 0 or 360
LLJTran.OPT_DEFAULTS
}
},
LLJTran.OPT_DEFAULTS or LLJTran.OPT_XFORM_ORIENTATION
)
BufferedOutputStream(FileOutputStream(output)).use { writer ->
lljTran.save(writer, LLJTran.OPT_WRITE_ALL )