This commit is contained in:
Toan Le 2024-09-18 21:19:15 +09:00 committed by GitHub
commit af93837c58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,10 +49,10 @@ class TransformImageImpl() : TransformImage {
180 -> LLJTran.ROT_180 180 -> LLJTran.ROT_180
270 -> LLJTran.ROT_270 270 -> LLJTran.ROT_270
else -> { 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 -> BufferedOutputStream(FileOutputStream(output)).use { writer ->
lljTran.save(writer, LLJTran.OPT_WRITE_ALL ) lljTran.save(writer, LLJTran.OPT_WRITE_ALL )