[#585] respect the EXIF orientation tag when generating thumbs
@see: https://github.com/disintegration/imaging#incorrect-image-orientation-after-processing-eg-an-image-appears-rotated-after-resizing
This commit is contained in:
		
							parent
							
								
									7006e1f5d7
								
							
						
					
					
						commit
						a1ad5004f8
					
				| 
						 | 
					@ -272,7 +272,7 @@ func (s *System) CreateThumb(originalKey string, thumbKey, thumbSize string) err
 | 
				
			||||||
	defer r.Close()
 | 
						defer r.Close()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// create imaging object from the origial reader
 | 
						// create imaging object from the origial reader
 | 
				
			||||||
	img, decodeErr := imaging.Decode(r)
 | 
						img, decodeErr := imaging.Decode(r, imaging.AutoOrientation(true))
 | 
				
			||||||
	if decodeErr != nil {
 | 
						if decodeErr != nil {
 | 
				
			||||||
		return decodeErr
 | 
							return decodeErr
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue