Using lvgl v8.2
obj = lv_obj_create(lv_scr_act());
lv_obj_remove_style_all(obj);
lv_obj_set_size(obj,LV_HOR_RES,LV_VER_RES);
lv_obj_set_style_bg_opa(obj,LV_OPA_COVER,0);
lv_obj_t * img = lv_img_create(obj);
lv_img_set_src(img, "/:./res/pic/jpg.jpg");
LV_IMG_DECLARE(jpg);
img = lv_img_create(obj);
lv_img_set_src(img, &jpg);
lv_obj_align(img,LV_ALIGN_TOP_RIGHT,0,0);
Original image