mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-29 11:26:17 +03:00
Add targa version 2 footer
Add the footer that is part of the version 2 spec. Some applications don't like images without the footer. Such as perforce's p4merge tool.
This commit is contained in:
parent
0cd84cf9b3
commit
0272dc2736
|
@ -182,6 +182,9 @@ def _save(im, fp, filename, check=0):
|
||||||
ImageFile._save(
|
ImageFile._save(
|
||||||
im, fp, [("raw", (0, 0) + im.size, 0, (rawmode, 0, orientation))])
|
im, fp, [("raw", (0, 0) + im.size, 0, (rawmode, 0, orientation))])
|
||||||
|
|
||||||
|
# write targa version 2 footer
|
||||||
|
fp.write(b"\000" * 8 + "TRUEVISION-XFILE." + b"\000")
|
||||||
|
|
||||||
#
|
#
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# Registry
|
# Registry
|
||||||
|
|
Loading…
Reference in New Issue
Block a user