8
\$\begingroup\$

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

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

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
| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ An error occurred in PVRTexTool: Unsupported input file format: pvr \$\endgroup\$ – Tor Klingberg Jul 21 '15 at 14:17
3
\$\begingroup\$

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
| improve this answer | |
\$\endgroup\$
1
\$\begingroup\$

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

| improve this answer | |
\$\endgroup\$
1
\$\begingroup\$

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.

| improve this answer | |
\$\endgroup\$
  • 1
    \$\begingroup\$ in texture packer comand line tool if i typed above coomand.. its ayind no such a dirctory.. can u explain a little more... \$\endgroup\$ – seenu Apr 16 '14 at 7:07
0
\$\begingroup\$

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

| improve this answer | |
\$\endgroup\$
  • 2
    \$\begingroup\$ Note: Windows only and not free. \$\endgroup\$ – Tor Klingberg Jul 21 '15 at 13:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.