Imagination PowerVR SDK Blog

PVRTexToolCLI "-squarecanvas +" option compress a 256x512 png into 256x256, not 512x512



I need to compress my png file into pvr file format, and make it square, but the “-squarecanvas +” option does not work as expected.

Input is a 256x512 png, the following command:

“PVRTexToolCLI.exe -i test.png -o tes2.pvr -f PVRTC1_4 -l -q pvrtcfast -squarecanvas +”, result a pvr file of 256x256 size.

Which I have to use “-rcanvas” option instead:

“PVRTexToolCLI.exe -i test.png -o test.pvr -f PVRTC1_4 -l -q pvrtcfast -rcanvas 512,512”



Thanks for bringing this bug to our attention.

I have fixed this for our next release. In the meantime, using -rcanvas is the best solution.