# Batch conversion of PVR to JPEG (or similar)

The command line PVRTexTool works very well for getting textures into a PVR format, but I need a way of going the opposite directions. Does anyone know of a good command line tool (or GUI with a batch mode) that will convert a PowerVR texture to a more common image format (like JPEG or PNG?)

• I think superuser.com is a better place to ask. – The Communist Duck May 1 '11 at 9:58
• I'll give it a try, PVR just doesn't get much use outside of games :) – Toji May 1 '11 at 15:50

Inside one of the folders of PVRTexTool you find PVRTexToolCLI.exe, that is the command-line version of it. You can use a batch command on it like this:

for %f in (*.pvr) do PVRTexToolCLI.exe -i "%f" -d -f r8g8b8a8

• An error occurred in PVRTexTool: Unsupported input file format: pvr – Tor Klingberg Jul 21 '15 at 14:17

I do it in 3 steps:

1. PVRTexToolCLI -dds -fDXT1 -iX.pvr -oX.dds
2. ImageMagick X.dds X.png (or X.jpg)
3. rm X.dds

Check out ImageMagick - it seems to do everything, and has a good command line interface.

I just used Texture Packer to do just as you ask:

for file in *.pvr.ccz; do
/Applications/TexturePacker.app/Contents/MacOS/TexturePacker $file --sheet${file%.pvr.ccz}.png --texture-format png --data \${file%.pvr.ccz}.plist
done


It gives you a PNG and a plist of the sprite data.

It also runs on most platforms, so even if you're not on a mac something similar should still work.

• in texture packer comand line tool if i typed above coomand.. its ayind no such a dirctory.. can u explain a little more... – seenu Apr 16 '14 at 7:07

"Image Converter Plus" can convert PVR to JPG and PNG images. You can select and convert multiple images at same time.

• Note: Windows only and not free. – Tor Klingberg Jul 21 '15 at 13:48