Andrew Murray
Andrew Murray
At the moment, `DEFAULT_MAX_THREADS` may be used when saving an AVIF image. https://github.com/python-pillow/Pillow/blob/58e48745cc7b6c6f7dd26a50fe68d1a82ea51562/src/PIL/AvifImagePlugin.py#L57-L59 https://github.com/python-pillow/Pillow/blob/58e48745cc7b6c6f7dd26a50fe68d1a82ea51562/src/PIL/AvifImagePlugin.py#L167 However, I don't think that's indicated by comments. https://github.com/python-pillow/Pillow/blob/58e48745cc7b6c6f7dd26a50fe68d1a82ea51562/src/PIL/AvifImagePlugin.py#L16-L20 And it's not mentioned in the docs...
Resolves #8921 When a GIF frame doesn't have a global palette, and an individual frame has a palette where the colours sequentially move from (0, 0, 0) to (255, 255,...
Resolves #8923 #8315 replaced `im.tag.tagdata[TiffImagePlugin.IPTC_NAA_CHUNK]` with `im.tag_v2[TiffImagePlugin.IPTC_NAA_CHUNK]`, but didn't think to ask why `.tagdata` was used, rather than just `im.tag[TiffImagePlugin.IPTC_NAA_CHUNK]`. The answer would have been in this comment. https://github.com/python-pillow/Pillow/blob/58e48745cc7b6c6f7dd26a50fe68d1a82ea51562/src/PIL/IptcImagePlugin.py#L219-L220 This...
ICO and IPTC `load()` return `None` the first time processing data, leading to the following assertions failing. ```python from PIL import Image with Image.open("Tests/images/hopper.png") as im: im.save("out.ico", sizes=[(32, 32), (64,...
Resolves #8872 Looking at the [specification](https://www.xfree86.org/current/xpm.pdf), or even just looking at https://github.com/python-pillow/Pillow/blob/main/Tests/images/hopper.xpm#L50), you will see that an XPM image describes a palette with a series of keys and values, and...
Looking at SgiImagePlugin, I see that an error for the incorrect number of bands will never be raised. https://github.com/python-pillow/Pillow/blob/507fefbce4c3b8c46c6c21483d488884f1b5a8e1/src/PIL/SgiImagePlugin.py#L160-L176 Only L, RGB and RGBA modes are supported when saving. https://github.com/python-pillow/Pillow/blob/507fefbce4c3b8c46c6c21483d488884f1b5a8e1/src/PIL/SgiImagePlugin.py#L137-L139...
Resolves #8897 When justifying text, - do not justify the last line. Keep it left aligned - fix position of justified words when using middle or right anchoring - fixed...
Resolves #8888 https://www.ece.ualberta.ca/~elliott/ee552/studentAppNotes/2003_w/misc/bmp_file_format/bmp_file_format.htm states that the fourth channel in a BMP color table is 'unused (=0)'. It seems reasonable to do so when saving 1 and L mode BMPs, and...
Resolves #8881 When pasting an image, https://github.com/python-pillow/Pillow/blob/c8d98d56a02e0729f794546d6f270b3cea5baecf/src/libImaging/Paste.c#L47-L49 will copy the rows of the image from top to bottom. However, if the image is pasting onto itself, but say, 10 pixels...