user1224534
user1224534

Reputation: 137

Image comments in Java

I need to make a java program which takes a directory of images and displays them one at a time - Fair enough. However, alongside this picture viewer I need a text box in which the user may comment about this individual picture. This should then be saved to the image so that if I ended execution and re-run the program loading the same directory again the comment attached to the specific image remains. Similarly if I move on to a different picture and come back the comment remains.

I know this can be achieved in multiple ways but im not sure how to best approach it.

Does anyone have an advice for me? All help is greatly appreciated

Thanks :)

Upvotes: 1

Views: 932

Answers (1)

High Performance Mark
High Performance Mark

Reputation: 78344

Are you looking for EXIF ? This works with TIFF, JPEG, PNG and other common image formats. It looks a better fit to your requirements than dealing with XML files containing the image metadata.

Upvotes: 1

Related Questions