Adapt shape in different file formats