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

This topic contains 4 replies, has 3 voices, and was last updated by  Tobias Hector 3 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #31610

    mxdeepthi
    Member

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

    #38400

    dgu
    Member

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

    regards
    david

    #38401

    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

    #38402

    dgu
    Member

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

    #38403

    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.

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