How to display images from SD card on a color screen?

I wish to start a project with touchscreen. My idea is that, there will be a background image and a layer in which there will be a smaller image. One can move the smaller image on the background by touching and dragging it. :smiley:

Now, the Basic Question is that, how to display an image on any tft/lcd/oled display?
Is there any library to display JPG, BMP or PNG image?
AND What's the best hardware to use with Arduino Uno, to perform the above task? :roll_eyes:

320x240 color touch-screen + SD card slot:
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=3&products_id=55 $20.50

Arduino shield for the above:
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=18&products_id=149 $4.80

The LCD is available in 8-bit and 16-bit bus flavors.

How to show images on this device:
http://iteadstudio.com/application-note/show-images-and-different-fonts-on-itdb02-series-lcd/

Is there any library to display JPG, BMP or PNG image?

JPEG on an AVR?
How long have you got?

AWOL:

Is there any library to display JPG, BMP or PNG image?

JPEG on an AVR?
How long have you got?

Well, I dunno much abt image processing. But as far as I know, JPEG is all about RGB matrix. What's the issue with AVRs?

JPEG is all about RGB matrix

JPEG has very little to do with RGB, it does all the compression in YUV.
There's the conversion from RGB to YUV, then the Discrete Cosine Transform, quantisation, run-length coding and Huffman coding (or the reverse, if you're decoding) on each of the components.
None of these operations is particularly well-suited to an 8 bit microcontroller with very limited RAM.

hmm.. ok... :cold_sweat:

now, let me know how to display bitmaps or png images on a display... :open_mouth:

png is also difficult to handle in general and the zlib will probably also not fit into the AVR. BMP also has a lot of flavors to handle. I personally would start to use tga (Truevision TGA - Wikipedia). Gimp can still save pictures as .tga files, so it is easy to convert pictures into .tga.

Oliver

thanks... well, for any image format... I wanna display it on any display...
pl continue suggestions... :smiley:

johnwasser:
320x240 color touch-screen + SD card slot:
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=3&products_id=55 $20.50

Arduino shield for the above:
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=18&products_id=149 $4.80

The LCD is available in 8-bit and 16-bit bus flavors.

How to show images on this device:
http://iteadstudio.com/application-note/show-images-and-different-fonts-on-itdb02-series-lcd/

Hey johnwasser, please suggest me some more solutions if you know, so that I can compare the pros n cons... Well, Thanks for such a helpful post...! :open_mouth:

If you should go for the display and shield mentioned earlier in this thread you can display images easily with my libraries (also mentioned in the app-note mentioned).

Libraries:
ITDB02_Graph : Electronics - Henning Karlsen
ITDB02_tinyFAT : Electronics - Henning Karlsen
tinyFAT : Electronics - Henning Karlsen

The ITDB02_tinyFAT library has demos showing how to load images from a SD card and displaying them on the screen.
A tool to convert images to the required format is included with the ITDB02_Graph library (Windows only), and a web-version of the tool is available at Electronics - Henning Karlsen.

I am not sure if the Arduino is fast enough for the touch-and-drag function you want, though...

/Henning

sarkar:
Hey johnwasser, please suggest me some more solutions if you know, so that I can compare the pros n cons...

You want more? Try

http://www.google.com/search?q=Arduino+Touchscreen

doc_norway:
If you should go for the display and shield mentioned earlier in this thread you can display images easily with my libraries (also mentioned in the app-note mentioned).

Libraries:
ITDB02_Graph : Electronics - Henning Karlsen
ITDB02_tinyFAT : Electronics - Henning Karlsen
tinyFAT : Electronics - Henning Karlsen

The ITDB02_tinyFAT library has demos showing how to load images from a SD card and displaying them on the screen.
A tool to convert images to the required format is included with the ITDB02_Graph library (Windows only), and a web-version of the tool is available at Electronics - Henning Karlsen.

GREAT!! Thanks!!! XD

I am not sure if the Arduino is fast enough for the touch-and-drag function you want, though...

:~

johnwasser:

sarkar:
Hey johnwasser, please suggest me some more solutions if you know, so that I can compare the pros n cons...

You want more? Try

Arduino Touchscreen - Google Search

Like!