Skip to content

Image Bitmap C Array Incorrect Generation for I2/A2 After updating to 0.26.2 #969

@mattmatt206

Description

@mattmatt206

After updating to 0.26.2, i noticed that the bitmaps generated for I2 and A2 formats are no longer generator the same.
For the same image the stride length has increased and completely changed the indexed colours
This may have happened after transferring from the python script to the new one?

I4 and A4 seem to work as expected

To Reproduce

  1. Use a version of EEZStudio before the transition away from the image convertor python script
  2. create a project
  3. set Image Export Mode to Source Code
  4. import a PNG
  5. set colour format to I2/A2
  6. build
  7. observe generated c file
  8. Update to 0.26.2
  9. Open same project
  10. build
  11. observe newly generate c file
  12. you'll notice stride length is increased, the array size is also increased and the colours are now wrong

Expected behavior
Same data size, same stride length, same colour, regardless of EEZStudio version

Screenshots

Image Image

Desktop (please complete the following information):
Windows 11

LVGL version (if used)
Same outcome on 9.2.2, 9.3.0, 9.4.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions