diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-11-02 02:54:04 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-11-02 02:54:04 +0000 |
commit | c1b07e2a356b9c3beca9d31365b93166ed3ac525 (patch) | |
tree | 9448d5bdd73fd9b73d464752266b622c790301fd /converter/ppm | |
parent | c09c564c9a35558115bcc72663e2f6e3ef3f0734 (diff) | |
download | netpbm-mirror-c1b07e2a356b9c3beca9d31365b93166ed3ac525.tar.gz netpbm-mirror-c1b07e2a356b9c3beca9d31365b93166ed3ac525.tar.xz netpbm-mirror-c1b07e2a356b9c3beca9d31365b93166ed3ac525.zip |
Identify compressed color-mapped format in error message saying format is can't be interpreted
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3412 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm')
-rw-r--r-- | converter/ppm/tgatoppm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/converter/ppm/tgatoppm.c b/converter/ppm/tgatoppm.c index 9f3db277..662f741b 100644 --- a/converter/ppm/tgatoppm.c +++ b/converter/ppm/tgatoppm.c @@ -374,6 +374,11 @@ main(int argc, char * argv[]) { case TGA_RLERGB: case TGA_RLEMono: break; + case TGA_CompMap: + case TGA_CompMap4: + pm_error("Targa image type %d (compressed color-mapped data). " + "Cannot handle this format.", tga_head.ImgType); + break; default: pm_error("unknown Targa image type %d", tga_head.ImgType); } |