Adjust attribute in different file formats