Image converter convert a PNG(size 6.5kb) image to a bigger size(225kb) array? How to avoid it?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Image converter convert a PNG(size 6.5kb) image to a bigger size(225kb) array? How to avoid it?

1,778 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by studyembedded on Thu Feb 26 23:01:18 MST 2015
Hi Friends,
I have an customized board with LPC1857 (with 3.5" TFT). I have manage to display images on LCD.
I have this one image attached with this post, which is around 6.5kb, size 320x240 pixel and .png format. To display this image on LCD i have used Segger emWin Bitmap converter and converted it to 24bpp C file, the resulting array is of 225kb.

For a 6.5kb png image converter gives 225kb array? which i really don't understand. But if this is correct then how can some body have 50 to 50 background images in project.
There must be some way to reduce the image size or may be display it differently...guys i am new to this ...can you please guide me .....to tutorial or some other image converter or procedure.


Thanks a lot.
Labels (1)
0 Kudos
2 Replies

1,501 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by studyembedded on Thu Feb 26 23:51:59 MST 2015
Thanks ....i must have been a fool....thanks R2D2, i appreciate it.
0 Kudos

1,501 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu Feb 26 23:40:40 MST 2015

Quote: studyembedded
For a 6.5kb png image converter gives 225kb array? which i really don't understand.



:quest:

320 * 240 * 24bit / 8bit/byte =  230400 bytes

See: https://www.segger.com/emwin-bitmap-converter.html

and

https://www.segger.com/emwin-displaying-bitmap-files.html
0 Kudos