Online image convert failed!

Fatal error: Allowed memory size of 201326592 bytes exhausted (tried to allocate 134217736 bytes) in /web/littlev/littlevgl.com/tools/img_conv_core.php on line 438

I suppose you want to convert a very large image but the memory can be used PHP is limited.

I suggest running the script offline.

@kisvegabor i try this tool to convert my jpeg file. and add the output c file to my project.
and test it with following code:
lv_obj_t * img1 = lv_img_create(lv_disp_get_scr_act(NULL), NULL);
lv_img_set_src(img1, &qq_map);
lv_obj_align(img1, NULL, LV_ALIGN_CENTER, 0, 0);

but it runs failed with Segmentation fault. why?

qq
qq.c (2.1 MB)

here is my jpeg and the output c file

It should be lv_img_set_src(img1, &qq);

thank u, i have solved

1 Like