Adapt stamp in different file formats