If you want to script it, it’s here:
setAttr “mentalrayGlobals.imageCompression” 4