Bug in TGA decoding

*** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: helmut, XnTriq, xnview, Dreamer

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

Bug in TGA decoding

Post by Katharsas »

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 45 times
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Bug in TGA decoding

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Bug in TGA decoding

Post by xnview »

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 »

Seems like its fixed. Thanks : )
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Bug in TGA decoding

Post by xnview »

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