Convert PVR to PNG without using PVRTexToolGUI

This topic contains 2 replies, has 2 voices, and was last updated by  JackAsser 4 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31322

    JackAsser
    Member

    Hi!

    I found this thread: http://forum.imgtec.com/discussion/2604/pvr-file-back-to-jpg-or-png

    I wonder if it’s possible to the same but from cmd-line? Do you know of any tool or do I have to code one myself? 🙂

    #37556

    Hi JackAsser,

    You can use the -d option in PVRTexToolCL to do this automatically. If you want it during compression it’s fairly straightforward – just add “-d” and an optional filename to output it.

    If you want to just do it with any list of already compressed pvrs, unfortunately you’ll technically still need to compress it first. However by setting the decompression to “r8g8b8a8” you’ll sidestep any additional work. I’d suggest using the following command line to do so:

    PVRTexToolCL -i [inputFile] -o tempCache.pvr -d -f r8g8b8a8

    This will generate and continuously overwrite “tempCache.pvr” but will otherwise work to create decompressed files as expected.

    Regards,
    Tobias

    #37557

    JackAsser
    Member

    Thanx! Perfect! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.