Compress resources