Display large image with small size object

I’m displaying 960 x 3256 image with object of size 220 x 175. It displaying only some part of the image even scroll to horizontal and vertical.

    lv_obj_t *img_box = lv_obj_create(drive->drive_obj);
    lv_obj_set_pos(img_box, 235, 45);
    lv_obj_set_size(img_box, 220, 175);
    lv_obj_add_flag(img_box, LV_OBJ_FLAG_SCROLLABLE);

    lv_obj_t *img = lv_img_create(img_box);
    lv_img_set_src(img, "S:/usb/image.bmp");
    lv_img_set_offset_x(img, 0);
    lv_img_set_offset_y(img, 0);
    lv_obj_align(img, LV_ALIGN_CENTER, 0, 0);

How to display complete image with scroll support.

At this moment LVGL supports only max 2047*2047 images. :frowning:

Understood. But it start displaying preview at middle of image. Not displaying from start.

If the image is larger then 2047x2047 the behavior is undefined.