I'm currently building an android app that should be able to take photos. But I also want to add information to the image such as timestamp and location automatically (could be other information as well, always text).

I'm using Flutter to build this app, and using the camera package to open the camera and take pictures (code from flutter cookbook). But what I don't know if there's a way to add this information to the image using this package (for example the timestamp).

I guess that this could be achieved by post-processing the image before saving it. Is there any existent package to do that task? I've been through the image package but I'm not sure how sort it out.


Solution 1: Catalanga

After reading more carefully the image documentation I found these functions, that I think is exactly what I was looking for.

drawChar(Image dst, BitmapFont font, int x, int y, String string, {int color: 0xffffffff});

drawString(Image image, BitmapFont font, int x, int y, String string, {int color: 0xffffffff});

Both functions returns the modified image.