Skip to content

Instantly share code, notes, and snippets.

@iSkore
Created February 19, 2016 20:05
Show Gist options
  • Save iSkore/a9f9465a30f63f398728 to your computer and use it in GitHub Desktop.
Save iSkore/a9f9465a30f63f398728 to your computer and use it in GitHub Desktop.

ORIGINAL POSTING

/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC --bits-per-pixel-2 -o left.pvr left.PNG

The file must be a PNG

In Terminal, hit cd to make sure you're in your root directory.

cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ && ls

This should show you a list of all the tools there (Make sure you see texturetool) - If you don't, update your OS, then Xcode

Once 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-4 -f PVR -o [new path to pvr to go] [path of original png]

Your output pvr path can be ~/whatever/image.pvr and your input png is the path to your image to be converted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment