Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java metadata read and write

Is it possible in a generic way (for all image types) to be able to read and write metadata in Java, i've found a few examples but they are always specific, for JPEG or PNG for example. I need something generic enough to not if else statement everywhere.

like image 670
Jim Avatar asked Mar 24 '26 12:03

Jim


1 Answers

I don't want to rewrite the source but here is an great example

http://johnbokma.com/java/obtaining-image-metadata.html

Look at the readandDisplayMetaData function and it will give you an idea.

like image 61
Mercutio Calviary Avatar answered Mar 27 '26 01:03

Mercutio Calviary



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!