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
						
					
					
						
							290 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							20 lines
						
					
					
						
							290 B
						
					
					
				
								package images
							 | 
						|
								
							 | 
						|
								import (
							 | 
						|
									"github.com/chrislusf/seaweedfs/weed/util"
							 | 
						|
									"os"
							 | 
						|
									"testing"
							 | 
						|
								)
							 | 
						|
								
							 | 
						|
								func TestXYZ(t *testing.T) {
							 | 
						|
									fname := "sample1.jpg"
							 | 
						|
								
							 | 
						|
									dat, _ := os.ReadFile(fname)
							 | 
						|
								
							 | 
						|
									fixed_data := FixJpgOrientation(dat)
							 | 
						|
								
							 | 
						|
									util.WriteFile("fixed1.jpg", fixed_data, 0644)
							 | 
						|
								
							 | 
						|
									os.Remove("fixed1.jpg")
							 | 
						|
								
							 | 
						|
								}
							 |