Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for legacy TGA files that have RLE crossing scanlines #251

Open
Bxaa opened this issue Oct 7, 2021 · 4 comments
Open

Support for legacy TGA files that have RLE crossing scanlines #251

Bxaa opened this issue Oct 7, 2021 · 4 comments
Labels
enhancement tga Truevision Targa (TGA)

Comments

@Bxaa
Copy link

Bxaa commented Oct 7, 2021

Samples:
https://drive.google.com/file/d/1v3-5jVnefTw4z5rSsXktcgMGZnS_uZG6/view?usp=sharing

Error reading header?

@Bxaa Bxaa changed the title TEXDIAG INFO TGA (80004005) TEXDIAG\TEXCONV TGA (80004005) Oct 7, 2021
@walbourn
Copy link
Member

walbourn commented Oct 8, 2021

Those TGA files are not properly encoded. Legacy DXTex fails to view them as well.

Many of the lines when you RLE decompress them exceed the stated width.

In the 15th scanline of devfonts.tga, for example, you get:

0, 14: Literal 1
1, 14: Repeat 4
5, 14: Literal 5
10, 14: Repeat 4
14, 14: Literal 1
15, 14: Repeat 8
23, 14: Literal 1
24, 14: Repeat 3
27, 14: Literal 4
31, 14: Repeat 4
35, 14: Literal 2
37, 14: Repeat 3
40, 14: Literal 2
42, 14: Repeat 3
45, 14: Literal 2
47, 14: Repeat 3
50, 14: Literal 2
52, 14: Repeat 3
55, 14: Literal 2
57, 14: Repeat 4
61, 14: Literal 3
64, 14: Repeat 3
67, 14: Literal 3
70, 14: Repeat 3
73, 14: Literal 1
74, 14: Repeat 4
78, 14: Repeat 5
83, 14: Repeat 4
87, 14: Literal 1
88, 14: Repeat 4
92, 14: Literal 1
93, 14: Repeat 3
96, 14: Repeat 5
101, 14: Literal 1
102, 14: Repeat 3
105, 14: Literal 1
106, 14: Repeat 5
111, 14: Repeat 7
118, 14: Literal 1
119, 14: Repeat 5
124, 14: Literal 1
125, 14: Repeat 7
132, 14: Literal 1
133, 14: Repeat 4
137, 14: Literal 1
138, 14: Repeat 3
141, 14: Literal 1
142, 14: Repeat 4
146, 14: Literal 1
147, 14: Repeat 8
155, 14: Repeat 5
160, 14: Repeat 9
169, 14: Literal 1
170, 14: Repeat 3
173, 14: Literal 2
175, 14: Repeat 3
178, 14: Literal 1
179, 14: Repeat 8
187, 14: Literal 3
190, 14: Repeat 3
193, 14: Literal 4
197, 14: Repeat 4
201, 14: Repeat 5
206, 14: Repeat 3
209, 14: Repeat 5
214, 14: Repeat 3
217, 14: Repeat 5
222, 14: Repeat 2
224, 14: Literal 1
225, 14: Repeat 5
230, 14: Repeat 7
237, 14: Repeat 5
242, 14: Repeat 3
245, 14: Repeat 5
250, 14: Repeat 128

Add 128 values starting at an x of 250 well exceeds the 256 width of the texture.

In other words, these TGA are not written using the documented RLE from the TGA specification. They are some sort of non-standard variant or the original encoder was just wrong. For example, in the standard it states:

Run-length Packets should never encode pixels from more than one scan line.

Perhaps the encoder of these images ignored this limitation...

@Bxaa
Copy link
Author

Bxaa commented Oct 9, 2021

Maybe some old RLE
All programs (any viewers\editors etc, including even the most primitive) handle this samples images fine
For test i did use few tga freeware viewers from MS store and no issues
(Image created in 2005 from COD2 game resource Q3 engine)

Filename: devfonts.tga
Format: TGA (Truevision Targa image)
Class: DirectClass
Geometry: 256x128+0+0
Units: Undefined
Colorspace: sRGB
Type: GrayscaleAlpha
Base type: Undefined
Endianness: Undefined
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Alpha: 8-bit
Channel statistics:
Pixels: 32768
Red:
min: 0 (0)
max: 255 (1)
mean: 60.4427 (0.23703)
median: 0 (0)
standard deviation: 103.126 (0.404416)
kurtosis: -0.393278
skewness: 1.22546
entropy: 0.256267
Green:
min: 0 (0)
max: 255 (1)
mean: 60.4427 (0.23703)
median: 0 (0)
standard deviation: 103.126 (0.404416)
kurtosis: -0.393278
skewness: 1.22546
entropy: 0.256267
Blue:
min: 0 (0)
max: 255 (1)
mean: 60.4427 (0.23703)
median: 0 (0)
standard deviation: 103.126 (0.404416)
kurtosis: -0.393278
skewness: 1.22546
entropy: 0.256267
Alpha:
min: 0 (0)
max: 255 (1)
mean: 124.206 (0.487082)
median: 0 (0)
standard deviation: 123.348 (0.483719)
kurtosis: -1.95041
skewness: 0.040576
entropy: 0.308012
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 76.3835 (0.299543)
median: 0 (0)
standard deviation: 108.182 (0.424241)
kurtosis: -1.17586
skewness: 0.865454
entropy: 0.269203
Alpha: none #00000000
Colors: 305
Histogram:
15456: (0,0,0,0) #00000000 none
4356: (0,0,0,255) #000000FF black
169: (0,0,0,251) #000000FB srgba(0,0,0,0.984314)
167: (0,0,0,223) #000000DF srgba(0,0,0,0.87451)
160: (0,0,0,247) #000000F7 srgba(0,0,0,0.968627)
146: (0,0,0,243) #000000F3 srgba(0,0,0,0.952941)
141: (0,0,0,239) #000000EF srgba(0,0,0,0.937255)
108: (0,0,0,191) #000000BF srgba(0,0,0,0.74902)
105: (0,0,0,235) #000000EB srgba(0,0,0,0.921569)
96: (0,0,0,203) #000000CB srgba(0,0,0,0.796078)
88: (0,0,0,63) #0000003F srgba(0,0,0,0.247059)
87: (0,0,0,215) #000000D7 srgba(0,0,0,0.843137)
82: (0,0,0,171) #000000AB srgba(0,0,0,0.670588)
74: (0,0,0,231) #000000E7 srgba(0,0,0,0.905882)
74: (0,0,0,195) #000000C3 srgba(0,0,0,0.764706)
72: (0,0,0,207) #000000CF srgba(0,0,0,0.811765)
67: (0,0,0,31) #0000001F srgba(0,0,0,0.121569)
66: (0,0,0,175) #000000AF srgba(0,0,0,0.686275)
64: (0,0,0,183) #000000B7 srgba(0,0,0,0.717647)
60: (0,0,0,39) #27 srgba(0,0,0,0.152941)
59: (0,0,0,199) #000000C7 srgba(0,0,0,0.780392)
59: (0,0,0,211) #000000D3 srgba(0,0,0,0.827451)
58: (0,0,0,227) #000000E3 srgba(0,0,0,0.890196)
57: (0,0,0,159) #0000009F srgba(0,0,0,0.623529)
57: (0,0,0,143) #0000008F srgba(0,0,0,0.560784)
55: (0,0,0,219) #000000DB srgba(0,0,0,0.858824)
54: (0,0,0,111) #0000006F srgba(0,0,0,0.435294)
54: (0,0,0,167) #000000A7 srgba(0,0,0,0.654902)
52: (0,0,0,187) #000000BB srgba(0,0,0,0.733333)
49: (0,0,0,155) #0000009B srgba(0,0,0,0.607843)
48: (0,0,0,163) #000000A3 srgba(0,0,0,0.639216)
48: (0,0,0,95) #0000005F srgba(0,0,0,0.372549)
46: (0,0,0,3) #3 srgba(0,0,0,0.0117647)
45: (0,0,0,59) #0000003B srgba(0,0,0,0.231373)
44: (0,0,0,55) #37 srgba(0,0,0,0.215686)
43: (0,0,0,23) #17 srgba(0,0,0,0.0901961)
41: (0,0,0,103) #67 srgba(0,0,0,0.403922)
39: (0,0,0,179) #000000B3 srgba(0,0,0,0.701961)
39: (0,0,0,35) #23 srgba(0,0,0,0.137255)
35: (0,0,0,7) #7 srgba(0,0,0,0.027451)
35: (0,0,0,83) #53 srgba(0,0,0,0.32549)
35: (0,0,0,11) #0000000B srgba(0,0,0,0.0431373)
33: (0,0,0,107) #0000006B srgba(0,0,0,0.419608)
32: (0,0,0,15) #0000000F srgba(0,0,0,0.0588235)
31: (0,0,0,79) #0000004F srgba(0,0,0,0.309804)
31: (0,0,0,19) #13 srgba(0,0,0,0.0745098)
30: (0,0,0,71) #47 srgba(0,0,0,0.278431)
29: (0,0,0,27) #0000001B srgba(0,0,0,0.105882)
29: (0,0,0,43) #0000002B srgba(0,0,0,0.168627)
28: (0,0,0,47) #0000002F srgba(0,0,0,0.184314)
28: (0,0,0,91) #0000005B srgba(0,0,0,0.356863)
27: (0,0,0,51) #33 srgba(0,0,0,0.2)
25: (0,0,0,123) #0000007B srgba(0,0,0,0.482353)
25: (0,0,0,75) #0000004B srgba(0,0,0,0.294118)
24: (0,0,0,147) #93 srgba(0,0,0,0.576471)
24: (0,0,0,87) #57 srgba(0,0,0,0.341176)
22: (0,0,0,119) #77 srgba(0,0,0,0.466667)
22: (0,0,0,115) #73 srgba(0,0,0,0.45098)
21: (0,0,0,99) #63 srgba(0,0,0,0.388235)
20: (0,0,0,131) #83 srgba(0,0,0,0.513725)
20: (0,0,0,151) #97 srgba(0,0,0,0.592157)
19: (0,0,0,135) #87 srgba(0,0,0,0.529412)
17: (0,0,0,67) #43 srgba(0,0,0,0.262745)
14: (0,0,0,139) #0000008B srgba(0,0,0,0.545098)
14: (0,0,0,127) #0000007F srgba(0,0,0,0.498039)
93: (3,3,3,255) #030303FF grey1
1: (3,3,3,252) #030303FC srgba(3,3,3,0.988235)
1: (3,3,3,244) #030303F4 srgba(3,3,3,0.956863)
1: (5,5,5,145) #05050591 srgba(5,5,5,0.568627)
59: (7,7,7,255) #070707FF srgba(7,7,7,1)
2: (7,7,7,232) #070707E8 srgba(7,7,7,0.909804)
1: (7,7,7,244) #070707F4 srgba(7,7,7,0.956863)
2: (8,8,8,220) #080808DC srgba(8,8,8,0.862745)
78: (11,11,11,255) #0B0B0BFF srgba(11,11,11,1)
1: (11,11,11,248) #0B0B0BF8 srgba(11,11,11,0.972549)
1: (12,12,12,221) #0C0C0CDD srgba(12,12,12,0.866667)
1: (13,13,13,213) #0D0D0DD5 srgba(13,13,13,0.835294)
49: (15,15,15,255) #0F0F0FFF grey6
2: (15,15,15,244) #0F0F0FF4 srgba(15,15,15,0.956863)
2: (16,16,16,229) #101010E5 srgba(16,16,16,0.898039)
1: (17,17,17,214) #111111D6 srgba(17,17,17,0.839216)
41: (19,19,19,255) #131313FF srgba(19,19,19,1)
1: (19,19,19,244) #131313F4 srgba(19,19,19,0.956863)
1: (20,20,20,191) #141414BF srgba(20,20,20,0.74902)
60: (23,23,23,255) #171717FF grey9
2: (23,23,23,248) #171717F8 srgba(23,23,23,0.972549)
1: (23,23,23,207) #171717CF srgba(23,23,23,0.811765)
1: (24,24,24,241) #181818F1 srgba(24,24,24,0.945098)
1: (25,25,25,234) #191919EA srgba(25,25,25,0.917647)
44: (27,27,27,255) #1B1B1BFF srgba(27,27,27,1)
2: (27,27,27,252) #1B1B1BFC srgba(27,27,27,0.988235)
1: (27,27,27,248) #1B1B1BF8 srgba(27,27,27,0.972549)
1: (27,27,27,212) #1B1B1BD4 srgba(27,27,27,0.831373)
73: (31,31,31,255) #1F1F1FFF grey12
1: (31,31,31,252) #1F1F1FFC srgba(31,31,31,0.988235)
1: (32,32,32,213) #202020D5 srgba(32,32,32,0.835294)
1: (32,32,32,209) #202020D1 srgba(32,32,32,0.819608)
8: (34,34,34,227) #222222E3 srgba(34,34,34,0.890196)
1: (34,34,34,202) #222222CA srgba(34,34,34,0.792157)
49: (35,35,35,255) #232323FF srgba(35,35,35,1)
1: (35,35,35,220) #232323DC srgba(35,35,35,0.862745)
1: (36,36,36,242) #242424F2 srgba(36,36,36,0.94902)
1: (37,37,37,213) #252525D5 srgba(37,37,37,0.835294)
74: (39,39,39,255) #272727FF srgba(39,39,39,1)
1: (39,39,39,224) #272727E0 srgba(39,39,39,0.878431)
1: (39,39,39,252) #272727FC srgba(39,39,39,0.988235)
45: (43,43,43,255) #2B2B2BFF grey17
10: (44,44,44,246) #2C2C2CF6 srgba(44,44,44,0.964706)
48: (47,47,47,255) #2F2F2FFF srgba(47,47,47,1)
48: (51,51,51,255) #333333FF grey20
1: (52,52,52,169) #343434A9 srgba(52,52,52,0.662745)
1: (54,54,54,239) #363636EF srgba(54,54,54,0.937255)
52: (55,55,55,255) #373737FF srgba(55,55,55,1)
1: (55,55,55,216) #373737D8 srgba(55,55,55,0.847059)
1: (57,57,57,243) #393939F3 srgba(57,57,57,0.952941)
1: (58,58,58,223) #3A3A3ADF srgba(58,58,58,0.87451)
55: (59,59,59,255) #3B3B3BFF grey23
1: (59,59,59,203) #3B3B3BCB srgba(59,59,59,0.796078)
1: (61,61,61,246) #3D3D3DF6 srgba(61,61,61,0.964706)
1: (62,62,62,207) #3E3E3ECF srgba(62,62,62,0.811765)
1: (62,62,62,240) #3E3E3EF0 srgba(62,62,62,0.941176)
52: (63,63,63,255) #3F3F3FFF srgba(63,63,63,1)
1: (63,63,63,252) #3F3F3FFC srgba(63,63,63,0.988235)
1: (64,64,64,234) #404040EA srgba(64,64,64,0.917647)
3: (65,65,65,246) #414141F6 srgba(65,65,65,0.964706)
1: (66,66,66,240) #424242F0 srgba(66,66,66,0.941176)
1: (66,66,66,225) #424242E1 srgba(66,66,66,0.882353)
28: (67,67,67,255) #434343FF srgba(67,67,67,1)
1: (68,68,68,234) #444444EA srgba(68,68,68,0.917647)
1: (69,69,69,202) #454545CA srgba(69,69,69,0.792157)
1: (69,69,69,231) #454545E7 srgba(69,69,69,0.905882)
40: (71,71,71,255) #474747FF grey28
2: (72,72,72,235) #484848EB srgba(72,72,72,0.921569)
47: (75,75,75,255) #4B4B4BFF srgba(75,75,75,1)
4: (77,77,77,207) #4D4D4DCF srgba(77,77,77,0.811765)
1: (78,78,78,232) #4E4E4EE8 srgba(78,78,78,0.909804)
57: (79,79,79,255) #4F4F4FFF grey31
1: (80,80,80,250) #505050FA srgba(80,80,80,0.980392)
1: (81,81,81,247) #515151F7 srgba(81,81,81,0.968627)
46: (83,83,83,255) #535353FF srgba(83,83,83,1)
1: (85,85,85,224) #555555E0 srgba(85,85,85,0.878431)
1: (86,86,86,245) #565656F5 srgba(86,86,86,0.960784)
38: (87,87,87,255) #575757FF grey34
1: (87,87,87,206) #575757CE srgba(87,87,87,0.807843)
1: (87,87,87,242) #575757F2 srgba(87,87,87,0.94902)
1: (88,88,88,216) #585858D8 srgba(88,88,88,0.847059)
1: (90,90,90,245) #5A5A5AF5 srgba(90,90,90,0.960784)
1: (90,90,90,234) #5A5A5AEA srgba(90,90,90,0.917647)
38: (91,91,91,255) #5B5B5BFF srgba(91,91,91,1)
2: (94,94,94,245) #5E5E5EF5 srgba(94,94,94,0.960784)
1: (94,94,94,234) #5E5E5EEA srgba(94,94,94,0.917647)
49: (95,95,95,255) #5F5F5FFF srgba(95,95,95,1)
2: (95,95,95,83) #5F5F5F53 srgba(95,95,95,0.32549)
1: (96,96,96,250) #606060FA srgba(96,96,96,0.980392)
11: (97,97,97,248) #616161F8 srgba(97,97,97,0.972549)
2: (98,98,98,80) #62626250 srgba(98,98,98,0.313725)
39: (99,99,99,255) #636363FF grey39
1: (99,99,99,224) #636363E0 srgba(99,99,99,0.878431)
1: (100,100,100,230) #646464E6 srgba(100,100,100,0.901961)
1: (102,102,102,246) #666666F6 srgba(102,102,102,0.964706)
55: (103,103,103,255) #676767FF srgba(103,103,103,1)
8: (103,103,103,235) #676767EB srgba(103,103,103,0.921569)
1: (106,106,106,238) #6A6A6AEE srgba(106,106,106,0.933333)
40: (107,107,107,255) #6B6B6BFF grey42
1: (108,108,108,223) #6C6C6CDF srgba(108,108,108,0.87451)
2: (109,109,109,147) #6D6D6D93 srgba(109,109,109,0.576471)
1: (109,109,109,239) #6D6D6DEF srgba(109,109,109,0.937255)
65: (111,111,111,255) #6F6F6FFF srgba(111,111,111,1)
1: (111,111,111,226) #6F6F6FE2 srgba(111,111,111,0.886275)
2: (114,114,114,239) #727272EF srgba(114,114,114,0.937255)
2: (114,114,114,69) #72727245 srgba(114,114,114,0.270588)
29: (115,115,115,255) #737373FF grey45
1: (117,117,117,249) #757575F9 srgba(117,117,117,0.976471)
32: (119,119,119,255) #777777FF srgba(119,119,119,1)
2: (119,119,119,66) #77777742 srgba(119,119,119,0.258824)
1: (121,121,121,242) #797979F2 srgba(121,121,121,0.94902)
1: (121,121,121,249) #797979F9 srgba(121,121,121,0.976471)
1: (122,122,122,240) #7A7A7AF0 srgba(122,122,122,0.941176)
37: (123,123,123,255) #7B7B7BFF srgba(123,123,123,1)
2: (124,124,124,129) #7C7C7C81 srgba(124,124,124,0.505882)
1: (124,124,124,236) #7C7C7CEC srgba(124,124,124,0.92549)
25: (127,127,127,255) #7F7F7FFF grey50
2: (130,130,130,123) #8282827B srgba(130,130,130,0.482353)
20: (131,131,131,255) #838383FF srgba(131,131,131,1)
1: (132,132,132,237) #848484ED srgba(132,132,132,0.929412)
10: (133,133,133,59) #8585853B srgba(133,133,133,0.231373)
1: (133,133,133,105) #85858569 srgba(133,133,133,0.411765)
30: (135,135,135,255) #878787FF grey53
22: (139,139,139,255) #8B8B8BFF srgba(139,139,139,1)
1: (141,141,141,222) #8D8D8DDE srgba(141,141,141,0.870588)
42: (143,143,143,255) #8F8F8FFF grey56
1: (143,143,143,225) #8F8F8FE1 srgba(143,143,143,0.882353)
1: (143,143,143,232) #8F8F8FE8 srgba(143,143,143,0.909804)
26: (144,144,144,111) #9090906F srgba(144,144,144,0.435294)
31: (147,147,147,255) #939393FF srgba(147,147,147,1)
1: (148,148,148,239) #949494EF srgba(148,148,148,0.937255)
1: (150,150,150,235) #969696EB srgba(150,150,150,0.921569)
1: (150,150,150,66) #96969642 srgba(150,150,150,0.258824)
1: (150,150,150,202) #969696CA srgba(150,150,150,0.792157)
1: (150,150,150,243) #969696F3 srgba(150,150,150,0.952941)
34: (151,151,151,255) #979797FF srgba(151,151,151,1)
1: (154,154,154,236) #9A9A9AEC srgba(154,154,154,0.92549)
1: (154,154,154,230) #9A9A9AE6 srgba(154,154,154,0.901961)
40: (155,155,155,255) #9B9B9BFF srgba(155,155,155,1)
2: (155,155,155,254) #9B9B9BFE srgba(155,155,155,0.996078)
1: (156,156,156,226) #9C9C9CE2 srgba(156,156,156,0.886275)
1: (156,156,156,252) #9C9C9CFC srgba(156,156,156,0.988235)
1: (157,157,157,244) #9D9D9DF4 srgba(157,157,157,0.956863)
1: (158,158,158,69) #9E9E9E45 srgba(158,158,158,0.270588)
48: (159,159,159,255) #9F9F9FFF srgba(159,159,159,1)
1: (159,159,159,229) #9F9F9FE5 srgba(159,159,159,0.898039)
1: (159,159,159,248) #9F9F9FF8 srgba(159,159,159,0.972549)
1: (159,159,159,242) #9F9F9FF2 srgba(159,159,159,0.94902)
1: (160,160,160,246) #A0A0A0F6 srgba(160,160,160,0.964706)
3: (161,161,161,251) #A1A1A1FB srgba(161,161,161,0.984314)
1: (161,161,161,226) #A1A1A1E2 srgba(161,161,161,0.886275)
1: (162,162,162,243) #A2A2A2F3 srgba(162,162,162,0.952941)
40: (163,163,163,255) #A3A3A3FF grey64
1: (163,163,163,217) #A3A3A3D9 srgba(163,163,163,0.85098)
1: (163,163,163,123) #A3A3A37B srgba(163,163,163,0.482353)
2: (164,164,164,241) #A4A4A4F1 srgba(164,164,164,0.945098)
8: (166,166,166,243) #A6A6A6F3 srgba(166,166,166,0.952941)
1: (166,166,166,250) #A6A6A6FA srgba(166,166,166,0.980392)
54: (167,167,167,255) #A7A7A7FF srgba(167,167,167,1)
1: (168,168,168,217) #A8A8A8D9 srgba(168,168,168,0.85098)
2: (170,170,170,244) #AAAAAAF4 srgba(170,170,170,0.956863)
61: (171,171,171,255) #ABABABFF grey67
1: (171,171,171,129) #ABABAB81 srgba(171,171,171,0.505882)
1: (171,171,171,249) #ABABABF9 srgba(171,171,171,0.976471)
1: (172,172,172,247) #ACACACF7 srgba(172,172,172,0.968627)
1: (172,172,172,212) #ACACACD4 srgba(172,172,172,0.831373)
1: (174,174,174,250) #AEAEAEFA srgba(174,174,174,0.980392)
66: (175,175,175,255) #AFAFAFFF srgba(175,175,175,1)
1: (175,175,175,80) #AFAFAF50 srgba(175,175,175,0.313725)
1: (176,176,176,253) #B0B0B0FD srgba(176,176,176,0.992157)
1: (177,177,177,240) #B1B1B1F0 srgba(177,177,177,0.941176)
37: (179,179,179,255) #B3B3B3FF grey70
1: (180,180,180,253) #B4B4B4FD srgba(180,180,180,0.992157)
1: (181,181,181,83) #B5B5B553 srgba(181,181,181,0.32549)
43: (183,183,183,255) #B7B7B7FF srgba(183,183,183,1)
1: (184,184,184,253) #B8B8B8FD srgba(184,184,184,0.992157)
1: (185,185,185,246) #B9B9B9F6 srgba(185,185,185,0.964706)
1: (186,186,186,212) #BABABAD4 srgba(186,186,186,0.831373)
39: (187,187,187,255) #BBBBBBFF srgba(187,187,187,1)
1: (187,187,187,254) #BBBBBBFE srgba(187,187,187,0.996078)
1: (187,187,187,233) #BBBBBBE9 srgba(187,187,187,0.913725)
2: (188,188,188,248) #BCBCBCF8 srgba(188,188,188,0.972549)
1: (189,189,189,252) #BDBDBDFC srgba(189,189,189,0.988235)
1: (189,189,189,251) #BDBDBDFB srgba(189,189,189,0.984314)
1: (190,190,190,250) #BEBEBEFA srgba(190,190,190,0.980392)
64: (191,191,191,255) #BFBFBFFF grey75
1: (191,191,191,249) #BFBFBFF9 srgba(191,191,191,0.976471)
1: (192,192,192,243) #C0C0C0F3 srgba(192,192,192,0.952941)
1: (192,192,192,253) #C0C0C0FD srgba(192,192,192,0.992157)
1: (192,192,192,147) #C0C0C093 srgba(192,192,192,0.576471)
1: (193,193,193,252) #C1C1C1FC srgba(193,193,193,0.988235)
1: (194,194,194,250) #C2C2C2FA srgba(194,194,194,0.980392)
60: (195,195,195,255) #C3C3C3FF srgba(195,195,195,1)
1: (195,195,195,244) #C3C3C3F4 srgba(195,195,195,0.956863)
5: (196,196,196,253) #C4C4C4FD srgba(196,196,196,0.992157)
61: (199,199,199,255) #C7C7C7FF grey78
1: (199,199,199,254) #C7C7C7FE srgba(199,199,199,0.996078)
66: (203,203,203,255) #CBCBCBFF srgba(203,203,203,1)
6: (203,203,203,239) #CBCBCBEF srgba(203,203,203,0.937255)
3: (204,204,204,253) #CCCCCCFD srgba(204,204,204,0.992157)
1: (205,205,205,232) #CDCDCDE8 srgba(205,205,205,0.909804)
1: (206,206,206,231) #CECECEE7 srgba(206,206,206,0.905882)
52: (207,207,207,255) #CFCFCFFF grey81
1: (207,207,207,254) #CFCFCFFE srgba(207,207,207,0.996078)
3: (209,209,209,252) #D1D1D1FC srgba(209,209,209,0.988235)
1: (210,210,210,251) #D2D2D2FB srgba(210,210,210,0.984314)
52: (211,211,211,255) #D3D3D3FF LightGray
1: (211,211,211,230) #D3D3D3E6 srgba(211,211,211,0.901961)
3: (212,212,212,253) #D4D4D4FD srgba(212,212,212,0.992157)
1: (214,214,214,251) #D6D6D6FB srgba(214,214,214,0.984314)
81: (215,215,215,255) #D7D7D7FF srgba(215,215,215,1)
1: (216,216,216,249) #D8D8D8F9 srgba(216,216,216,0.976471)
1: (218,218,218,251) #DADADAFB srgba(218,218,218,0.984314)
1: (218,218,218,237) #DADADAED srgba(218,218,218,0.929412)
51: (219,219,219,255) #DBDBDBFF grey86
1: (219,219,219,254) #DBDBDBFE srgba(219,219,219,0.996078)
1: (219,219,219,240) #DBDBDBF0 srgba(219,219,219,0.941176)
1: (221,221,221,248) #DDDDDDF8 srgba(221,221,221,0.972549)
1: (221,221,221,238) #DDDDDDEE srgba(221,221,221,0.933333)
115: (223,223,223,255) #DFDFDFFF srgba(223,223,223,1)
1: (223,223,223,254) #DFDFDFFE srgba(223,223,223,0.996078)
5: (226,226,226,251) #E2E2E2FB srgba(226,226,226,0.984314)
55: (227,227,227,255) #E3E3E3FF grey89
2: (227,227,227,254) #E3E3E3FE srgba(227,227,227,0.996078)
1: (230,230,230,247) #E6E6E6F7 srgba(230,230,230,0.968627)
77: (231,231,231,255) #E7E7E7FF srgba(231,231,231,1)
1: (231,231,231,254) #E7E7E7FE srgba(231,231,231,0.996078)
1: (231,231,231,241) #E7E7E7F1 srgba(231,231,231,0.945098)
1: (232,232,232,253) #E8E8E8FD srgba(232,232,232,0.992157)
4: (234,234,234,243) #EAEAEAF3 srgba(234,234,234,0.952941)
91: (235,235,235,255) #EBEBEBFF grey92
114: (239,239,239,255) #EFEFEFFF srgba(239,239,239,1)
3: (239,239,239,254) #EFEFEFFE srgba(239,239,239,0.996078)
1: (239,239,239,250) #EFEFEFFA srgba(239,239,239,0.980392)
136: (243,243,243,255) #F3F3F3FF srgba(243,243,243,1)
2: (243,243,243,254) #F3F3F3FE srgba(243,243,243,0.996078)
1: (244,244,244,253) #F4F4F4FD srgba(244,244,244,0.992157)
140: (247,247,247,255) #F7F7F7FF grey97
169: (251,251,251,255) #FBFBFBFF srgba(251,251,251,1)
5634: (255,255,255,255) #FFFFFFFF white
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Matte color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: none
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 256x128+0+0
Dispose: Undefined
Iterations: 0
Compression: RLE
Orientation: TopLeft
Properties:
date:create: 2021-10-07T23:15:44+00:00
date:modify: 2005-08-10T23:25:30+00:00
signature: 27d092276851528271c5cada9596bc4ef0193813e8db1494ae4ccfb04941650a
Artifacts:
verbose: true
Tainted: False
Filesize: 63887B
Number pixels: 32768

@walbourn walbourn added the bug label Oct 9, 2021
@walbourn walbourn reopened this Oct 9, 2021
@walbourn
Copy link
Member

walbourn commented Oct 9, 2021

Legacy D3DX9's reader (DXTex) fails on these files too... I'll keep it on my backlog then.

@Bxaa
Copy link
Author

Bxaa commented Oct 10, 2021

Thx!

@walbourn walbourn changed the title TEXDIAG\TEXCONV TGA (80004005) Support for legacy TGA files that have RLE crossing scanlines Oct 11, 2021
@walbourn walbourn added tga Truevision Targa (TGA) and removed enhancement labels Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement tga Truevision Targa (TGA)
Projects
None yet
Development

No branches or pull requests

2 participants