Hi. I wrote a topic few hours later. So here is my other question. Can I displlay jpg or png images from SD card on a 3.2" display using arduino? I have bought this display module and I have arduino mega. Is there any way to do that? PS: If I can use UTFT library to do this I will be very happy because I have all pins connected to mega this way as displayed on this site.

I can just about imagine doing JPEG decoding on a Mega, for a very restricted set of JPEG files.It would be exceedingly slow, and an exercise in advanced hair-loss.

It may be possible to do some other form of compression on the image, but it really depends on the image content.

If you've already got an SD card, store the image in a file as a BMP.

It's possible on the Mega for almost all JPEGs (only progressive jpegs are not supported), costs only 2.5Kb of SRAM while decoding and it's surprisingly fast. See my demo video at the bottom of this article. It won't work on the standard (2Kb SRAM) arduino - the huffman tables are just too large.

It's possible on the Mega for almost all JPEGs (only progressive jpegs are not supported), costs only 2.5Kb of SRAM while decoding and it's surprisingly fast. See my demo video at the bottom of this article. It won't work on the standard (2Kb SRAM) arduino - the huffman tables are just too large.

You might want to read the header to be more sure of the file (always check for errors! alternative is crash, lock or show garbage on error. our world is not perfect!) and handle different size pictures.