
Yesterday I updated the developer branch of readImageMetadata on github. I created this project when I was writing the last post read image meta data with java.
Two lines of code
" tag.getDescription: " + tag.getDescription() + "\n" + " directory.getString(tag.getTagType(), \"UTF-8\"): " + directory.getString(tag.getTagType(), "UTF-8") + "\n"
were added to App.java that uses Metadata Extractor library. Reason for that were errors I experienced with some image meta data that contain german umlauts like öüäÖÜÄ etc. .
directory.getString(tag.getTagType(), "UTF-8")
The line of code above extracts image meta data with correct umlauts. This is just a quick solution for the umlaut issue. Although this worked for my smoke tests I’m not sure this is a solid solution.
Anyway, it’s one way to read at least some utf-8 image meta data. Do you have any experience with image meta data that contain none ASCII characters?
Leave a Reply