Bug in TGA decoding

Moderators: cday, XnTriq, helmut, xnview, Dreamer

Post Reply
Katharsas
Posts: 7
Joined: Wed Mar 01, 2017 5:02 am

Bug in TGA decoding

Post by Katharsas » Sun Mar 03, 2019 8:14 pm

XnView MP Windows
Version 0.93 64bits (Jan 31 2019)
Libformat version 7.25

Windows 10 64bit

There is probably a bug in the Targa (.tga) file format loading code for 16-bit TGAs that are compressed with RLE (runtime-length-encoding). I have attached a picture where the bug occurs.

If you load the picture with XnView MP and zoom in, you can see that the last pixel row is moved to the left by one. If you load the picture in a different program, it is correctly loaded.

XnView (without MP) may also be affected since its visible in a program called "SageThumbs" which seems to use XnView.


The TGA was created with Photoshop.
Attachments
test_gimp_small_16_bit_mit_rle.tga
(812 Bytes) Downloaded 8 times

User avatar
xnview
Author of XnView
Posts: 31175
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Bug in TGA decoding

Post by xnview » Mon Mar 04, 2019 11:05 am

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.

User avatar
xnview
Author of XnView
Posts: 31175
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Bug in TGA decoding

Post by xnview » Thu Mar 07, 2019 4:01 pm

This problem is supposed to be fixed in XnView MP 0.93.1. Please check and confirm the bug fix here.
Pierre.

Katharsas
Posts: 7
Joined: Wed Mar 01, 2017 5:02 am

Re: Bug in TGA decoding

Post by Katharsas » Tue Apr 23, 2019 7:01 pm

Seems like its fixed. Thanks : )

Post Reply