def update_exif_GEXIV2(oldfile,newfile):
<EOL>try:<EOL><INDENT>from gi.repository import GExiv2 <EOL><DEDENT>except:<EOL><INDENT>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>return False<EOL><DEDENT>exif = GExiv2.Metadata(oldfile)<EOL>newExif = GExiv2.Metadata(newfile)<EOL>imgresize = Image.open(newfile)<EOL>for tag in exif.get_exif_tags():<EOL><INDENT>newExif[tag] = exif[tag]<EOL><DEDENT>newExif['<STR_LIT>'] = str(imgresize.size[<NUM_LIT:0>])<EOL>newExif['<STR_LIT>'] = str(imgresize.size[<NUM_LIT:1>])<EOL>newExif.save_file()<EOL>return True<EOL>
Transfers oldfile's exif to newfile's exif and
    updates the width/height EXIF fields