Comments (6)
Hey, thanks. Indeed the v9 tool doesn't work. The docs still link to the v8 converter but the output is not compatible with v9 LVGL. We'll keep this issue open until it's corrected.
Until then, 2 thing worked for me.
1.
Use the v8 converter and then edit the lv_img_dsc_t
at the bottom of the output.
E.g. change this output from the v8 converter...
const lv_img_dsc_t bulb = {
.header.cf = LV_IMG_CF_RAW_CHROMA_KEYED,
.header.always_zero = 0,
.header.reserved = 0,
.header.w = 60,
.header.h = 80,
.data_size = 17693,
.data = bulb_map,
};
...to this v9 compatible one...
const lv_img_dsc_t bulb = {
.header.cf = LV_COLOR_FORMAT_RAW,
.header.w = 60,
.header.h = 80,
.data_size = 17693,
.data = bulb_map,
};
2.
Or you can use the python tool. It worked for me.
python scripts/LVGLImage.py --ofmt C --cf RAW -o your_output_dir_path examples/libs/gif/bulb.gif
from lvgl.
The first method worked for me, but it only worked with images smaller than 140 x 140. When I tried to use a file 150 x 150, there were some issues; in the log, it simply said "Couldn't load the source" for images larger than this. Even after raising LV_MEM_SIZE to 128 * 1024, it is still not functioning. How to play a larger-sized GIF
And I have tried play gif from FATFS, but always crash. This is my code:
I already enable LV_USE_FS_FATFS flag in config file
how to play gif from fatfs. i flashed a .gif file to fatfs
from lvgl.
Related Issues (20)
- Error: failed to map framebuffer device to memory: Invalid argument HOT 3
- LV_EVENT_CLICKED should only be fired if the release takes place over the same object where the press happened HOT 3
- Default fonts not clear on red background HOT 4
- Span elements not printing properly HOT 10
- Display bug HOT 2
- get_x_aligned returns wrong value in case of percentage unit HOT 6
- STM32 Baremetal application only Renders to part of the screen HOT 5
- Change TileView Scroll animation speed HOT 3
- why the picture pixel blinking when running lvgl demo HOT 1
- Number and logic buttons in physical buttons
- Bengali string display abnormal using freetype lib HOT 2
- lvgl draws artefacts after button click HOT 4
- Could provide a font convert tool by c++? HOT 2
- Failing docs build HOT 16
- Grid layout style `grid_column_align` seems to have no effect HOT 7
- Linux DRM display mode locks up by default due to missing lv_tick_set_cb HOT 1
- discussion about C++ code in LVGL HOT 6
- lv_api_map_v8.h has no consideration for things that are enabled/disabled
- Buggy Demos in 9.x HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lvgl.