8

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?)

Toji
  • 423
  • 1
  • 4
  • 11

5 Answers5

3

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
2

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
Luc Bloom
  • 121
  • 2
1

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

Tim Holt
  • 10,318
  • 1
  • 31
  • 46
1

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.

sj26
  • 111
  • 3
  • 1
    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 07:07
0

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

momboco
  • 1,670
  • 14
  • 12