mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Allow 256x256 sizes
This commit is contained in:
		
							parent
							
								
									43fc9c9b59
								
							
						
					
					
						commit
						b341898c7f
					
				|  | @ -47,7 +47,7 @@ def _save(im, fp, filename): | |||
|                                 (64, 64), (128, 128), (256, 256)]) | ||||
|     width, height = im.size | ||||
|     filter(lambda x: False if (x[0] > width or x[1] > height or | ||||
|                                x[0] > 255 or x[1] > 255) else True, sizes) | ||||
|                                x[0] > 256 or x[1] > 256) else True, sizes) | ||||
|     fp.write(struct.pack("<H", len(sizes)))  # idCount(2) | ||||
|     offset = fp.tell() + len(sizes)*16 | ||||
|     for size in sizes: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user