mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Add test against info of apng images getting clobbered when seeking to the first frame multiple times.
This commit is contained in:
		
							parent
							
								
									6d99f9193f
								
							
						
					
					
						commit
						3515f997ce
					
				
							
								
								
									
										
											BIN
										
									
								
								Tests/images/apng/issue_7700.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/apng/issue_7700.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 233 B  | 
| 
						 | 
				
			
			@ -689,3 +689,13 @@ def test_different_modes_in_later_frames(mode, default_image, duplicate, tmp_pat
 | 
			
		|||
    )
 | 
			
		||||
    with Image.open(test_file) as reloaded:
 | 
			
		||||
        assert reloaded.mode == mode
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def test_apng_issue_7700():
 | 
			
		||||
    # https://github.com/python-pillow/Pillow/issues/7700
 | 
			
		||||
    with Image.open("Tests/images/apng/issue_7700.png") as im:
 | 
			
		||||
        for i in range(5):
 | 
			
		||||
            im.seek(0)
 | 
			
		||||
            assert im.info["duration"] == 4000.0
 | 
			
		||||
            im.seek(1)
 | 
			
		||||
            assert im.info["duration"] == 1000.0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user