diff --git a/README.md b/README.md index e55baea..0a09adb 100644 --- a/README.md +++ b/README.md @@ -26,14 +26,17 @@ java -jar ./target/bioformats-imageinfo-1.1.0-jar-with-dependencies.jar "[path t import java.util.LinkedHashMap; import java.util.Map; import jp.riken.neurodata.tools.BioFormatsImageInfo; -import jp.riken.neurodata.tools.BioFormatsException; +import jp.riken.neurodata.tools.BioFormatsImageException; +import jp.riken.neurodata.tools.BioFormatsImageThumbnail; String path = "[path to image file]"; String format = ""; Map metadata = new LinkedHashMap(); +Map thumbnail = new LinkedHashMap(); try { format = BioFormatsImageInfo.readMetadata(path, metadata); + BioFormatsImageThumbnail.readThumbnail(path, thumbnail); } catch (BioFormatsImageException e) { // error occurred e.printStackTrace();