mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Fix rotation implementation, no rotation when the given degree is not 90 180 or 270
This commit is contained in:
		
							parent
							
								
									69cd9c94d1
								
							
						
					
					
						commit
						66fa8d8559
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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 ) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 root
						root