Coder Social home page Coder Social logo

Png picture distortion about lv_lib_png HOT 5 OPEN

lvgl avatar lvgl commented on May 24, 2024
Png picture distortion

from lv_lib_png.

Comments (5)

embeddedt avatar embeddedt commented on May 24, 2024

This is a known limitation of 16-bit color. To work around it, you need to dither the image. Support for this is likely to be added to LVGL (v8) soon, but you may also be able to do it by manually dithering the image in GIMP or another tool first.

from lv_lib_png.

kisvegabor avatar kisvegabor commented on May 24, 2024

You can also use e.g. 10 px high dithered image and let LVGL tile it.

from lv_lib_png.

seadog-www avatar seadog-www commented on May 24, 2024

This is a known limitation of 16-bit color. To work around it, you need to dither the image. Support for this is likely to be added to LVGL (v8) soon, but you may also be able to do it by manually dithering the image in GIMP or another tool first.

  1. Thank you for your replying. I got a new image generated by GIMP, which's performance is better. However, when it is displayed in device, there are still some strip, but not on the PC simulator(also LV_COLOR_DEPTH 16). I don't know why?
  2. I think it is necessary to integrate image dithering in LVGL, because the device will display image download from cloud, which could not be manually dithered.
  3. By the way, when will it be released, and we are looking forward to it. If it will take a long time to release, can you tell me how to achieve it by myself. I've tried some methods, the following is relatively good

python_code

Is this method similar to yours

from lv_lib_png.

seadog-www avatar seadog-www commented on May 24, 2024

You can also use e.g. 10 px high dithered image and let LVGL tile it.

I'm sorry I don't quite understand what you mean. I don't know what the number of pixels has to do with this problem. Can you explain. Thank you!

from lv_lib_png.

kisvegabor avatar kisvegabor commented on May 24, 2024

Let's say you can have a dithered 10x200 image and you can set it for a 200x200 lv_img widget. (LVGL automatically tiles the image source if it's smaller than the widget size.)

from lv_lib_png.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.