automatic compress script