compress some attachments