mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Removed self.rawmode
This commit is contained in:
		
							parent
							
								
									3cd384886b
								
							
						
					
					
						commit
						aa6510fca2
					
				|  | @ -60,7 +60,6 @@ class JpegXlImageFile(ImageFile.ImageFile): | ||||||
|         self.__timestamp = 0 |         self.__timestamp = 0 | ||||||
| 
 | 
 | ||||||
|         self._mode = mode |         self._mode = mode | ||||||
|         self.rawmode = mode |  | ||||||
|         self.tile = [] |         self.tile = [] | ||||||
| 
 | 
 | ||||||
|         if icc := self._decoder.get_icc(): |         if icc := self._decoder.get_icc(): | ||||||
|  | @ -149,7 +148,7 @@ class JpegXlImageFile(ImageFile.ImageFile): | ||||||
|             # this is horribly memory inefficient |             # this is horribly memory inefficient | ||||||
|             # you need probably 2*(raw image plane) bytes of memory |             # you need probably 2*(raw image plane) bytes of memory | ||||||
|             self.fp = BytesIO(data) |             self.fp = BytesIO(data) | ||||||
|             self.tile = [ImageFile._Tile("raw", (0, 0) + self.size, 0, self.rawmode)] |             self.tile = [ImageFile._Tile("raw", (0, 0) + self.size, 0, self.mode)] | ||||||
| 
 | 
 | ||||||
|         return super().load() |         return super().load() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user