Compress sample