I am trying to use the PVRTexToolCLI.exe tool to convert image to PVR format.
So I tried to use PVRTexToolGUI.exe to open a jpg or a png file then everything works fine.
But when I try to use the PVRTexToolCLI.exe then it fails. the error message is " Unable to load file 1.jpg - invalid file "
so every time the jpg file which has the dpi = 96 it fails, if dpi=72 then it works fine.
Also the output pvr file from GUI is always bigger than the cmd output.
so what kind of setting flags or options should i use then i can get a good result.
So far i just tried “PVRTexToolCLI.exe -i 1.jpg -o 0xxx.pvr -f PVRTC1_4”
i tried all the prv formats: PVRTC1_2, PVRTC1_4, PVRTC1_2_RGB, PVRTC1_4_RGB, PVRTC2_2, PVRTC2_4
none of them has the same size from GUI convert.
So questions are:
- why the jpg which has dpi=96 fails on the CLI.exe. but the gui.exe works fine.
- how to get a good result of PVR output?
Thanks a lot!