mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
		
							parent
							
								
									efb647ff79
								
							
						
					
					
						commit
						8bfeddb789
					
				| 
						 | 
				
			
			@ -292,10 +292,7 @@ class TestImageResize:
 | 
			
		|||
 | 
			
		||||
        def resize_scale(mode: str, scale: float) -> None:
 | 
			
		||||
            img = hopper(mode)
 | 
			
		||||
            size = (
 | 
			
		||||
                int(self.width * scale),
 | 
			
		||||
                int(self.height * scale)
 | 
			
		||||
            )
 | 
			
		||||
            size = (int(self.width * scale), int(self.height * scale))
 | 
			
		||||
            out = img.resize(img.size, scale=scale)
 | 
			
		||||
            assert out.mode == mode
 | 
			
		||||
            assert out.size == tuple(size)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2292,10 +2292,7 @@ class Image:
 | 
			
		|||
            raise ValueError(msg)
 | 
			
		||||
 | 
			
		||||
        if scale:
 | 
			
		||||
            size = (
 | 
			
		||||
                int(size[0] * scale),
 | 
			
		||||
                int(size[1] * scale)
 | 
			
		||||
            )
 | 
			
		||||
            size = (int(size[0] * scale), int(size[1] * scale))
 | 
			
		||||
 | 
			
		||||
        self.load()
 | 
			
		||||
        if box is None:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user