# PVRTexTool A8 format

**URL:** <https://forums.imgtec.com/t/pvrtextool-a8-format/1427>\
**Category:** PowerVR Insider\
**Tags:** pvrtextool\
**Created:** [May 28, 2012, 1:27am UTC](https://forums.imgtec.com/t/pvrtextool-a8-format/1427 "2012-05-28T01:27:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![egoh-2](https://avatars.discourse-cdn.com/v4/letter/e/82dd89/32.png) [@egoh-2](https://forums.imgtec.com/u/egoh-2)\
**Post date:** [May 28, 2012, 1:27am UTC](https://forums.imgtec.com/t/pvrtextool-a8-format/1427/1 "2012-05-28T01:27:31Z")

</div>

Hi,  
  
I’m trying to get the command line PVRTexTool to generate alpha data using the following command:   
  
PVRTexTool&nbsp; -fA8 -yflip 0 -i test.png  
  
This complains that A8 is an invalid format though it seems to be listed in the documentation. -f8 works, but returns intensity instead of alpha. Am I missing something?  
  
This is on Windows. The main purpose is to have alpha data to work with in conjunction with RGB from ETC1. If there is a better way to do this, do let me know.  
  
Thanks,  
Eugene

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)\
**Post date:** [May 28, 2012, 7:57am UTC](https://forums.imgtec.com/t/pvrtextool-a8-format/1427/2 "2012-05-28T07:57:34Z")

</div>

Hi egoh,  
  
Somewhere wires have been crossed and I’m not sure whether this is a documentation problem or if the code base has changed, so I’ll investigate and try to get it updated for the next release.  
  
In the meantime you can use “-fdx10\_a8\_unorm” to the same effect.  
  
Is there some reason you can’t use PVRTC in this case? As this supports alpha it would provide a more compact + better performing solution.  
  
Thanks,  
  
Tobias

---

<div class="post-metadata">

**Author:** ![egoh-2](https://avatars.discourse-cdn.com/v4/letter/e/82dd89/32.png) [@egoh-2](https://forums.imgtec.com/u/egoh-2)\
**Post date:** [May 28, 2012, 8:43pm UTC](https://forums.imgtec.com/t/pvrtextool-a8-format/1427/3 "2012-05-28T20:43:25Z")

</div>

Thanks!. Yes, I am using PVRTC for our iOS builds and some Android builds, but ETC1 is the only format supported on some Android models unfortunately.  
  
Cheers,  
Eugene

---

<div class="post-metadata">

**Author:** ![SimonFenney](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/simonfenney/32/257_2.png) [@SimonFenney](https://forums.imgtec.com/u/SimonFenney)\
**Post date:** [May 30, 2012, 5:21am UTC](https://forums.imgtec.com/t/pvrtextool-a8-format/1427/4 "2012-05-30T05:21:06Z")

</div>

Eugene,  
For the ETC1-only devices, if you want to reduce the memory footprint a bit, you can use ETC to get the alpha texture down to 4bpp. The trick is to create a new texture and to duplicate the A8 data into _each_ of the R, G & B channels, and then compress with ETC1. When you read the texture, use the shader to just copy, say, the G channel into Alpha.   
&nbsp;(Note: don’t just copy the A8 into, say, the R channel as ETC does a better job compressing images that have pixel blocks that only vary in ‘luma’)  
  
Simon

---

<div class="post-metadata">

**Author:** ![rebdev](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@rebdev](https://forums.imgtec.com/u/rebdev)\
**Post date:** [September 19, 2012, 8:46am UTC](https://forums.imgtec.com/t/pvrtextool-a8-format/1427/5 "2012-09-19T08:46:33Z")

</div>

Tobias wrote:

In the meantime you can use "-fdx10\_a8\_unorm" to the same effect.

It seems that dx10\_a8\_unorm is also incorrect - it generates exactly the same output as&nbsp;dx10\_r8\_unorm.

---

<div class="post-metadata">

**Author:** ![egoh-2](https://avatars.discourse-cdn.com/v4/letter/e/82dd89/32.png) [@egoh-2](https://forums.imgtec.com/u/egoh-2)\
**Post date:** [September 19, 2012, 8:48am UTC](https://forums.imgtec.com/t/pvrtextool-a8-format/1427/6 "2012-09-19T08:48:31Z")

</div>

I managed this in the end with “-fOVG\_A\_8”
