-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PNG test on lv_port_stm32f429_disco #16
Comments
Probably you are out of memory. I've added a smaller |
That worked well!
and mine is:
It is smaller in size however it is showing just a bold text |
Could you send the PNG image you used? |
I think i figured out what was wrong!
Both files can be opened and viewed. However the current decoder cant handle an image that is resized with Imagick. Now I've actually managed to combine, a transparent PNG together with a 320x240 transparent GIF animation, without graphical issues. I suppose we can close this issue, thank you for quick response! and your work! |
I'd be curious to know if the same issue happens when converting the PNG to LVGL format using the experimental JS converter. There are many variants of PNG and the PHP converter tends to fail on several of them. |
@embeddedt: |
Are you referring to the struct generated at the end of the file? That is using the dimension data provided by the browser, which should match the dimensions of the PNG file. If it's not matching, please provide the PNG file so I have something to replicate the issue with. |
So i tried: https://blog.lvgl.io/assets/png_converter/png_decoder_test.png
Note: the current image converter doesnt add the zeroes for the dimension but gives good |
Dimensions being 0 are intended, as the RAW feature actually allows you to convert any type of file. For a PNG image, the PNG decoder will take care of finding the width and height from the PNG data at runtime. I don't think you're supposed to have to add them by hand - @kisvegabor is this a bug in the PHP converter? Data size being 0 is a bug on mine which should be fixed now. I also added line breaks for RAW images as it's easier to do there. |
Hello
Im trying to load the basic example on a stm32f429 discovery board.
Im not doing anything unusual,
The only thing I get on the screen is:
I just have one image, but I've #define LV_IMG_CACHE_DEF_SIZE 2
Is there anything else I need to think about?
Im using "7faf20592598e7f891cf2aceca32bbe6ff5fc36c"
The text was updated successfully, but these errors were encountered: