mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	blp: Add more test images
This commit is contained in:
		
							parent
							
								
									73d7fff16e
								
							
						
					
					
						commit
						4d685ac0cd
					
				
							
								
								
									
										
											BIN
										
									
								
								Tests/images/blp/blp1_alpha4.blp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/blp/blp1_alpha4.blp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Tests/images/blp/blp1_alpha4.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/blp/blp1_alpha4.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 2.8 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Tests/images/blp/blp1_alpha5.blp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/blp/blp1_alpha5.blp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Tests/images/blp/blp1_alpha5.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/blp/blp1_alpha5.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 36 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Tests/images/blp/blp1_jpeg.blp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/blp/blp1_jpeg.blp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_dxt1a.blp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_dxt1a.blp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_dxt1a.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_dxt1a.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 275 B  | 
							
								
								
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_dxt3.blp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_dxt3.blp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_dxt3.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_dxt3.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 36 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_dxt5.blp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_dxt5.blp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_dxt5.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_dxt5.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 295 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_raw.blp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_raw.blp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_raw.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/images/blp/blp2_raw.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 18 KiB  | 
| 
						 | 
					@ -4,10 +4,40 @@ from helper import PillowTestCase, unittest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class TestFileBlp(PillowTestCase):
 | 
					class TestFileBlp(PillowTestCase):
 | 
				
			||||||
 | 
					    def test_load_blp1_alpha4(self):
 | 
				
			||||||
 | 
					        im = Image.open("Tests/images/blp/blp1_alpha4.blp")
 | 
				
			||||||
 | 
					        target = Image.open("Tests/images/blp/blp1_alpha4.png")
 | 
				
			||||||
 | 
					        self.assert_image_equal(im, target)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def test_load_blp1_alpha5(self):
 | 
				
			||||||
 | 
					        im = Image.open("Tests/images/blp/blp1_alpha5.blp")
 | 
				
			||||||
 | 
					        target = Image.open("Tests/images/blp/blp1_alpha5.png")
 | 
				
			||||||
 | 
					        self.assert_image_equal(im, target)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def test_load_blp2_raw(self):
 | 
				
			||||||
 | 
					        im = Image.open("Tests/images/blp/blp2_raw.blp")
 | 
				
			||||||
 | 
					        target = Image.open("Tests/images/blp/blp2_raw.png")
 | 
				
			||||||
 | 
					        self.assert_image_equal(im, target)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test_load_blp2_dxt1(self):
 | 
					    def test_load_blp2_dxt1(self):
 | 
				
			||||||
        im = Image.open("Tests/images/blp2_dxt1.blp")
 | 
					        im = Image.open("Tests/images/blp/blp2_dxt1.blp")
 | 
				
			||||||
        target = Image.open("Tests/images/blp2_dxt1.png")
 | 
					        target = Image.open("Tests/images/blp/blp2_dxt1.png")
 | 
				
			||||||
        self.assert_image_similar(im, target.convert("RGBA"), 15)
 | 
					        self.assert_image_equal(im, target)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def test_load_blp2_dxt1a(self):
 | 
				
			||||||
 | 
					        im = Image.open("Tests/images/blp/blp2_dxt1a.blp")
 | 
				
			||||||
 | 
					        target = Image.open("Tests/images/blp/blp2_dxt1a.png")
 | 
				
			||||||
 | 
					        self.assert_image_equal(im, target)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def test_load_blp2_dxt3(self):
 | 
				
			||||||
 | 
					        im = Image.open("Tests/images/blp/blp2_dxt3.blp")
 | 
				
			||||||
 | 
					        target = Image.open("Tests/images/blp/blp2_dxt3.png")
 | 
				
			||||||
 | 
					        self.assert_image_equal(im, target)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def test_load_blp2_dxt5(self):
 | 
				
			||||||
 | 
					        im = Image.open("Tests/images/blp/blp2_dxt5.blp")
 | 
				
			||||||
 | 
					        target = Image.open("Tests/images/blp/blp2_dxt5.png")
 | 
				
			||||||
 | 
					        self.assert_image_equal(im, target)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == "__main__":
 | 
					if __name__ == "__main__":
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user