mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Removed unused decoders
This commit is contained in:
		
							parent
							
								
									a70ea82eb5
								
							
						
					
					
						commit
						5c59807216
					
				|  | @ -144,10 +144,6 @@ def _write_image(im, filename, existing_pdf, image_refs): | |||
|     elif filter == "JPXDecode": | ||||
|         del dict_obj["BitsPerComponent"] | ||||
|         Image.SAVE["JPEG2000"](im, op, filename) | ||||
|     elif filter == "FlateDecode": | ||||
|         ImageFile._save(im, op, [("zip", (0, 0) + im.size, 0, im.mode)]) | ||||
|     elif filter == "RunLengthDecode": | ||||
|         ImageFile._save(im, op, [("packbits", (0, 0) + im.size, 0, im.mode)]) | ||||
|     else: | ||||
|         msg = f"unsupported PDF filter ({filter})" | ||||
|         raise ValueError(msg) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user