Rotate thumbnail by exif to ensure correct appearance.
This commit is contained in:
		
							parent
							
								
									e8cb183849
								
							
						
					
					
						commit
						1ee73feb6c
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -208,6 +208,7 @@ def generate_image_thumbnail(filepath, width, height): | |||
|     if not os.path.isfile(filepath): | ||||
|         raise FileNotFoundError(filepath) | ||||
|     image = PIL.Image.open(filepath) | ||||
|     image = imagetools.rotate_by_exif(image) | ||||
|     (image_width, image_height) = image.size | ||||
|     (new_width, new_height) = imagetools.fit_into_bounds( | ||||
|         image_width=image_width, | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue