I've been using terminal to convert my jpg
image named left to pvrtc
format and this happens:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC --bits-per-pixel-2 -o left.pvrtc left.jpg
Failed to load image
Failed to perform Encode
Change:
To:
The file must be a PNG
Updated instructions on OSX 10.10+
In Terminal, hit
cd
to make sure you're in your root directory.This should show you a list of all the tools there (Make sure you see
texturetool
) - If you don't, update your OS, then XcodeOnce you know it's there,
cd
back to your root and run the tool like:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC --bits-per-pixel-2 -f PVR -o [new path to pvr to go] [path of original png]
Your output
pvr
path can be~/whatever/image.pvr
and your inputpng
is the path to your image to be converted.HERE and HERE are other good walkthrough
HERE is some same code to help once you have your
pvrtc
fileHERE are some more docs
HERE is a good read on
PVRTC
stuff