Imagination PowerVR SDK Blog

Converting pvr format back to png/jpeg/bmp using PVRTexToolCLI command

pvrtextool

#1

Hi

I would like to convert PVR image to png/jpeg/bmp formats using PVRTexToolCLI.exe.

I don’t want to use the GUI. Is there any way to convert from PVR to png???


#2

hi

i believe that the command tools can only use PVR, KTX or DDS format as output



regards

david


#3

Hi,



Sorry I didn’t spot this before - actually you can convert to png by using the -d option.



For instance, you can use the command:



PVRTexToolCLI -i texture.pvr -d image.png



which will decompress texture.pvr and put the top mip map level into image.png.



Thanks,

Tobias


#4

it’s a new feature ? that is a good one


#5

I think it’s been there since 3.1? Not sure without checking the old release notes.



Also I just checked and you also have to supply a format as well, since it’s primary purpose is compression, not decompression… Just use:



PVRTexToolCLI -i texture.pvr -d image.png -f r8g8b8a8



and it’ll work.