Does anybody know where I can find some advice about how to create gif files on SD cards ? I need to create few gif files with the TFT screen contents. I was searching for libraries to do this job but I could not find anything. Thanks.
What does this question have to do with Arduino?
groundFungus:
What does this question have to do with Arduino?
I need to do that using Arduino DUE with 3.95" TFT display with SD card...
Do you really need GIF format? There are much easier graphics file formats to deal with.
aarg:
Do you really need GIF format? There are much easier graphics file formats to deal with.
No. Any other format is aceptable such jpeg, png, tiff etc. I thought gif would be the easiest format !!! Wich format do you suggest ?
AntonioTesta:
No. Any other format is aceptable such jpeg, png, tiff etc. I thought gif would be the easiest format !!! Wich format do you suggest ?
Windows bitmap version from windows NT (header size is 40 bytes) is probably the easiest. The other file types require compression, which would be tricky to implement. The bitmap file headers are fixed length, and easy enough to declare and fill in. The only 'trick' is that you will probably need to convert your pixel values. Arduino is usually RGB565, while the simplest BMP file format would use RGB888. There's probably a way to directly write RGB565, but you'd need to fiddle with some other header values to do so.
I needed to do the reverse (take a BMP and output Arduino data to render to screen), I was able to do so just from reading the Wikipedia article on BMP files and sticking to format version 3 and lower.