]> granicus.if.org Git - php/commit
Support TGA reading
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 20 Jun 2019 21:40:51 +0000 (23:40 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 20 Jun 2019 21:40:51 +0000 (23:40 +0200)
commit81fd113506e4c5833e64998651f232734ebb2cb7
treed92370413e673848b7fc774ecd0454fdf0e71966
parent2b4fc9eb9c0e0b607dfb0bf779936507be1ad58b
Support TGA reading

We add PHP bindings for libgd's features to read TGA files, which are
available as of libgd 2.1.0.

As PHP's bundled libgd doesn't yet include the respective features of the
external libgd, we add these.

Since TGA has no easily recognizable file signature, we don't add TGA
support for imagecreatefromstring() or getimagesize() and friends.
15 files changed:
NEWS
UPGRADING
ext/gd/config.m4
ext/gd/config.w32
ext/gd/gd.c
ext/gd/libgd/gd.h
ext/gd/libgd/gd_tga.c [new file with mode: 0644]
ext/gd/libgd/gd_tga.h [new file with mode: 0644]
ext/gd/php_gd.h
ext/gd/tests/imagecreatefromtga.png [new file with mode: 0644]
ext/gd/tests/imagecreatefromtga_basic.phpt [new file with mode: 0644]
ext/gd/tests/imagecreatefromtga_basic.tga [new file with mode: 0644]
ext/gd/tests/imagecreatefromtga_variation.phpt [new file with mode: 0644]
ext/gd/tests/imagecreatefromtga_variation.tga [new file with mode: 0644]
ext/gd/tests/imagetypes_tga.phpt [new file with mode: 0644]