# Error: Failed to perform Alpha Bleed

**URL:** https://forums.imgtec.com/t/error-failed-to-perform-alpha-bleed/3463
**Category:** PowerVR Insider
**Tags:** pvrtextool
**Created:** [November 1, 2021, 9:58am UTC](https://forums.imgtec.com/t/error-failed-to-perform-alpha-bleed/3463 "2021-11-01T09:58:57Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![karoliso](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@karoliso](https://forums.imgtec.com/u/karoliso)
#### Post date: [November 1, 2021, 9:58am UTC](https://forums.imgtec.com/t/error-failed-to-perform-alpha-bleed/3463/1 "2021-11-01T09:58:57Z")

</div>

Hello. I have recently upgraded to PVRTexTool 2021 R1. Now, when converting the same TGA files that worked with previous tool versions, I get a “Error: Failed to perform Alpha Bleed” error.

---

<div class="post-metadata">

### Author: ![AlejandroC](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AlejandroC](https://forums.imgtec.com/u/AlejandroC)
#### Post date: [November 1, 2021, 12:48pm UTC](https://forums.imgtec.com/t/error-failed-to-perform-alpha-bleed/3463/2 "2021-11-01T12:48:31Z")

</div>

Hi karoliso,

Thanks for your message and welcome to the PowerVR Developer Forum!

Could you please attach a sample image that reproduces the issue you are experiencing with PVRTexTool? I will analyse it and report to the Tools Team.

Best regards,  
Alejandro

---

<div class="post-metadata">

### Author: ![karoliso](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@karoliso](https://forums.imgtec.com/u/karoliso)
#### Post date: [November 2, 2021, 12:11pm UTC](https://forums.imgtec.com/t/error-failed-to-perform-alpha-bleed/3463/3 "2021-11-02T12:11:57Z")

</div>

I can’t seem to attach files since I’m a new account. Here’s the file on a [OneDrive](https://1drv.ms/u/s!AjFjtk-_DvPW2AoR8csIBL_VMOPM?e=nJkazJ).

---

<div class="post-metadata">

### Author: ![AlejandroC](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AlejandroC](https://forums.imgtec.com/u/AlejandroC)
#### Post date: [November 2, 2021, 12:32pm UTC](https://forums.imgtec.com/t/error-failed-to-perform-alpha-bleed/3463/4 "2021-11-02T12:32:02Z")

</div>

Hi karoliso,

Thanks for providing the image.

I tried to reproduce the error you’re experiencing but I haven’t managed to. After opening the sample image with PVRTexTool 2021 R1 (version 21.1@5986312) I tried to save the image to different formats (.png, .bmp, .jpg, .tga, .hdr) but I didn’t get any errors. I also encoded it to a couple of formats with alpha channel with no error.

Could you please describe the steps to reproduce the error? for instance, _File_ → _Save Image…_ → _Save as type_=jpg

Best regards and many thanks,  
Alejandro

---

<div class="post-metadata">

### Author: ![karoliso](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@karoliso](https://forums.imgtec.com/u/karoliso)
#### Post date: [November 2, 2021, 12:58pm UTC](https://forums.imgtec.com/t/error-failed-to-perform-alpha-bleed/3463/5 "2021-11-02T12:58:45Z")

</div>

Apologies I should have clarified - I am using PVRTexToolCLI. I use the following commands:

```auto
-l -flip y,flag -r WIDTH,HEIGHT -rfilter cubic -m -mfilter cubic -ics lRGB -f TEXTURE_FORMAT,UBN,lRGB -shh

```

---

<div class="post-metadata">

### Author: ![AlejandroC](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AlejandroC](https://forums.imgtec.com/u/AlejandroC)
#### Post date: [November 2, 2021, 6:24pm UTC](https://forums.imgtec.com/t/error-failed-to-perform-alpha-bleed/3463/6 "2021-11-02T18:24:18Z")

</div>

Thanks karoliso,

Could you please write the exact and whole command (including the image file name) that is giving you errors? i.e., _PVRTexToolCLI.exe -param1 value -param2 value etc_.

Best regards and many thanks,  
Alejandro

---

<div class="post-metadata">

### Author: ![karoliso](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@karoliso](https://forums.imgtec.com/u/karoliso)
#### Post date: [November 3, 2021, 2:31pm UTC](https://forums.imgtec.com/t/error-failed-to-perform-alpha-bleed/3463/7 "2021-11-03T14:31:33Z")

</div>

```auto
PVRTexToolCLI.x86_64.exe -i "C:/tests/test_01/tex_sample_01.tga" -o "C:/tests/test_01_temp/tex_sample_01.pvr" -l -flip y,flag -r 256,256 -rfilter cubic -m -mfilter cubic -ics lRGB -f ETC1,UBN,lRGB -shh

```

---

<div class="post-metadata">

### Author: ![AlejandroC](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AlejandroC](https://forums.imgtec.com/u/AlejandroC)
#### Post date: [November 4, 2021, 2:27pm UTC](https://forums.imgtec.com/t/error-failed-to-perform-alpha-bleed/3463/8 "2021-11-04T14:27:29Z")

</div>

Hi karoliso,

Thanks for the detailed command line example.

I was able to reproduce the issue you’re experiencing. It is due to the .tga file you are using lacking an alpha channel. Since 21.1 PVRTexToolCLI expects the input image to have an alpha channel to perform alpha bleeding when using the -l parameter. To solve this issue you can either remove the -l parameter or transcode your .tga image from RGB to RGBA.

Let us know if you have any other issues.

Best regards and many thanks,  
Alejandro

---

<div class="post-metadata">

### Author: ![karoliso](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@karoliso](https://forums.imgtec.com/u/karoliso)
#### Post date: [November 4, 2021, 2:42pm UTC](https://forums.imgtec.com/t/error-failed-to-perform-alpha-bleed/3463/9 "2021-11-04T14:42:21Z")

</div>

I rely on PVRTexToolCLI in my pipeline to handle all image file processing. Ideally I shouldn’t need to identify the texture properties prior to sending it to PVRTexToolCLI. Can the transcoding be done in PVRTexToolCLI?

---

<div class="post-metadata">

### Author: ![AlejandroC](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AlejandroC](https://forums.imgtec.com/u/AlejandroC)
#### Post date: [November 4, 2021, 5:38pm UTC](https://forums.imgtec.com/t/error-failed-to-perform-alpha-bleed/3463/10 "2021-11-04T17:38:48Z")

</div>

Hi karoliso,

Yes, you can use the command below to generate an RGBA version of the image and then process it as usual.

`PVRTexToolCLI -i tex_sample_01.tga -f r8g8b8a8 -d tex_sample_01_rgba.tga`

Best regards,  
Alejandro
