Fade-in object function does not have any effect with an image/picture?

Hello,

I’m using LVGL version 8.3.5 and I can’t manage to get the image fade-in with following code:

What am I doing wrong?

Thanks

			  lv_style_init(&style);
			  lv_style_set_bg_color(&style, lv_color_make(0x00,0x00,0xFF));
			  lv_style_set_bg_opa(&style, LV_OPA_COVER);
			  //lv_style_set_img_opa(&style, 127);

			  img1 = lv_img_create(lv_scr_act());
			  lv_obj_set_size(img1, 1024, 600);
			  lv_obj_set_pos(img1, 0, 0);
			  lv_obj_add_style(img1, &style, 0);

			  //lv_obj_fade_in(img1, 5000, 0);
			  //lv_obj_fade_in(img1, 0, 5000);
			  
			  //lv_img_set_src(img1, &display);
			  lv_img_set_src(img1, "S:sm1.png");
			  
			  //lv_obj_fade_in(img1, 5000, 0);
			  //lv_obj_fade_in(img1, 0, 5000);
			  lv_obj_fade_in(img1, 2000, 2000);

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

Hi
Is fade in function working for you?