You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							20 lines
						
					
					
						
							265 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							20 lines
						
					
					
						
							265 B
						
					
					
				| package images | |
| 
 | |
| import ( | |
| 	"io/ioutil" | |
| 	"os" | |
| 	"testing" | |
| ) | |
| 
 | |
| func TestXYZ(t *testing.T) { | |
| 	fname := "sample1.jpg" | |
| 
 | |
| 	dat, _ := ioutil.ReadFile(fname) | |
| 
 | |
| 	fixed_data := FixJpgOrientation(dat) | |
| 
 | |
| 	ioutil.WriteFile("fixed1.jpg", fixed_data, 0644) | |
| 
 | |
| 	os.Remove("fixed1.jpg") | |
| 
 | |
| }
 |