From Ottoman Turkish رسمی (resmî), from Arabic رَسْمِيّ (rasmiyy). By surface analysis, resim (“picture”) + -i (nisba suffix).
resmî