Skip to main content
DCajigal
Associate III
May 7, 2021
Question

Is it possible to add metadata info to a .jpg using FatFS?

  • May 7, 2021
  • 2 replies
  • 1920 views

Hi,

For one project i have to save some pictures taken with one SPI Camera into an SD Card by SPI and i have to save also some info related to the image. For saving the pictures i am going to use FATFS and i was wondering if i could save some Exif info along with the picture. Otherwise i would have to create another file on the SD and link it to the picture. Thanks in advance.

This topic has been closed for replies.

2 replies

Ozone
Principal
May 7, 2021

EXIF metadata are part of the image file, and independant of the filesystem.

The FatFS filesystem does not care about the content of a file.

DCajigal
DCajigalAuthor
Associate III
May 7, 2021

I understand...but i have been searching for some library to do this and i dont find anything. I have found libraries but for Unix systems only. Would you know if there is an easy way to do this in a STM32F4 and .jpg images? I would have also the option of working with raw images, but i would prefer to use the JPG for space saving. Thank you!

Ozone
Principal
May 7, 2021

I don't work on graphic applications with Cortex M, mainly for that reason.

For private projects, I rather pull a Linux board for about the same price, with most of those libs directly available.

I think the TIFF and PNG formats support EXIF data as well, you could try looking for a portable library supporting EXIF.

DCajigal
DCajigalAuthor
Associate III
May 7, 2021

I agree with you, but in this case i have to do it in a M4. I will continue to search for libraries. Thank you very much