add example script for offline compressing