From 39fae6e0770086b1aed7928c32f7cd6f66f5a844 Mon Sep 17 00:00:00 2001 From: Daniel Plakhotich Date: Thu, 14 Jun 2018 12:18:08 +0300 Subject: [PATCH] TGA: Read and write LA data --- Tests/images/la.tga | Bin 0 -> 7205 bytes Tests/test_file_tga.py | 24 +++++++++++++++++++----- docs/handbook/image-file-formats.rst | 12 +++++++----- src/PIL/TgaImagePlugin.py | 6 +++++- 4 files changed, 31 insertions(+), 11 deletions(-) create mode 100644 Tests/images/la.tga diff --git a/Tests/images/la.tga b/Tests/images/la.tga new file mode 100644 index 0000000000000000000000000000000000000000..8c83104ed7e59a750906aae922ceb4b66fdccb38 GIT binary patch literal 7205 zcmai3dz4pI6~5X-iwyY9@KV!I5KTc+P( zKm(m2dHF~&GQ==+VW47<)nmCT?T=Ouv!bv4oqhN0bMK6$%YSg@eD{0oefB;iNuxyn z>6!4~Cg;vi(D_7s7N5t-_yWF!FQW;Xq72Q@0+r;hhoi+6KI@30?Oz zY?EQ0pRv5SLClH>(^OTKidl(qxDDe`o#3(}YC~SeOgm;?I@6xwCAIAvyo|NIF7wiu zjuWQiF#!)G=&HC>m~8VIIz42_*q&GL)HBp8!|jLunZm}F8FGaccOve@>;#vqw@j}i zmrHtE;#5hmdh0s3mozcGOcRm2h4l84^yV24#?Z{$QIg&Db_H{oW%zBPC}L0C`5-Ka{?{e)1rCuPiI^wUDBiwV0h zpnKi+2srJ$Jz6ry zu2m`8-=1SX4bzd*`j~x5nppGDG_9qy$>7<hy;pc;UxisnPYE}6DHGqkSMkkzihoh)czO1H!i~+_Oubk3 z?6veh7JqzJ_a^?mf&DC0Bjvzg-W$BKr}sK8xc9O63V(Gyct)?tej+B-iSO*IF$Zar zAinl{omY6%w9TT&w$o91ZYP;noIU3i_WOQO-JAC#rQa9XPYgZR3XkqrVKyER_<2ZO ze8O{-u)5c-NA?QO>xRj{B3w6DH2{BoD7=_GuUNt}`C9ig1^#~Vz8Z4{ej!pVJc`e0 z&Ahj+$NR2xj=d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