# PVRTexToolCLI bug encoding ETC2\_RGB\_A1, ETC2\_RGB\_A1,UBN,sRGB

**URL:** <https://forums.imgtec.com/t/pvrtextoolcli-bug-encoding-etc2-rgb-a1-etc2-rgb-a1-ubn-srgb/2365>\
**Category:** PowerVR Insider\
**Tags:** pvrtextool\
**Created:** [September 13, 2015, 9:52am UTC](https://forums.imgtec.com/t/pvrtextoolcli-bug-encoding-etc2-rgb-a1-etc2-rgb-a1-ubn-srgb/2365 "2015-09-13T09:52:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuanyeow](https://avatars.discourse-cdn.com/v4/letter/y/34f0e0/32.png) [@yuanyeow](https://forums.imgtec.com/u/yuanyeow)\
**Post date:** [September 13, 2015, 9:52am UTC](https://forums.imgtec.com/t/pvrtextoolcli-bug-encoding-etc2-rgb-a1-etc2-rgb-a1-ubn-srgb/2365/1 "2015-09-13T09:52:37Z")

</div>

Test command:  
“PVRTexToolCLI -i background.png -o background.pvr -f ETC2\_RGB\_A1”

Error message produced.  
…  
INVALID ALPHA DATA!!  
INVALID ALPHA DATA!!  
INVALID ALPHA DATA!!  
INVALID ALPHA DATA!!  
INVALID ALPHA DATA!!  
INVALID ALPHA DATA!!  
INVALID ALPHA DATA!!  
testerr: 193, etcerr: 0.000000  
INVALID ALPHA DATA!!  
INVALID ALPHA DATA!!  
INVALID ALPHA DATA!!  
INVALID ALPHA DATA!!  
INVALID ALPHA DATA!!  
INVALID ALPHA DATA!!  
…

Test system: Xubuntu 14.04

Is this a bug in the PVRTexToolCLI?

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [September 14, 2015, 2:33pm UTC](https://forums.imgtec.com/t/pvrtextoolcli-bug-encoding-etc2-rgb-a1-etc2-rgb-a1-ubn-srgb/2365/2 "2015-09-14T14:33:51Z")

</div>

Thanks for reporting the issue. I’ll discuss it with the TexTool lead and will get back to you.

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [October 6, 2015, 12:37pm UTC](https://forums.imgtec.com/t/pvrtextoolcli-bug-encoding-etc2-rgb-a1-etc2-rgb-a1-ubn-srgb/2365/3 "2015-10-06T12:37:30Z")

</div>

With the latest version of PVRTexTool CLI (3.4, SDK Version: 3.5@3523712) I wasn’t able to reproduce the issue on Ubuntu 14.04 64-bit. I used the background.png from our SDK’s ExampleUI demo as input.

[blockquote]$ PVRTexToolCLI -i background.png -o background.pvr -f ETC2\_RGB\_A1  
Compressing…  
Saved texture to background.pvr  
[/blockquote]

If you used a different source texture for your test, can you share it with us?

---

<div class="post-metadata">

**Author:** ![yuanyeow](https://avatars.discourse-cdn.com/v4/letter/y/34f0e0/32.png) [@yuanyeow](https://forums.imgtec.com/u/yuanyeow)\
**Post date:** [October 6, 2015, 1:07pm UTC](https://forums.imgtec.com/t/pvrtextoolcli-bug-encoding-etc2-rgb-a1-etc2-rgb-a1-ubn-srgb/2365/4 "2015-10-06T13:07:52Z")

</div>

Hi Joe,

Here’s an image from googling “png file”.  
I ran:  
/opt/Imagination/PowerVR\_Graphics/PowerVR\_Tools/PVRTexTool/CLI/Linux\_x86\_64/PVRTexToolCLI -i apple\_raw.png -o apple\_raw.pvr -f ETC2\_RGB\_A1  
I was able to get an output pvr file this time, but there are lots of “INVALID ALPHA DATA” messages,

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [October 7, 2015, 10:14am UTC](https://forums.imgtec.com/t/pvrtextoolcli-bug-encoding-etc2-rgb-a1-etc2-rgb-a1-ubn-srgb/2365/5 "2015-10-07T10:14:33Z")

</div>

Thanks for sharing that image. I was able to reproduce the problem on Ubuntu 14.04 x86-64 with it. I’ve filed bug BRN57719 against PVRTexTool. We will try to fix the issue in a future release.
