@@ -0,0 +1,1265 @@
+package imj3.draft;%0A%0Aimport java.util.LinkedHashMap;%0Aimport java.util.Map;%0A%0Aimport imj3.core.Image2D;%0Aimport imj3.tools.IMJTools;%0Aimport multij.tools.CommandLineArgumentsParser;%0Aimport multij.tools.IllegalInstantiationException;%0A%0A/**%0A * @author codistmonk (creation 2015-07-29)%0A */%0Apublic final class PrintInfo %7B%0A%09%0A%09private PrintInfo() %7B%0A%09%09throw new IllegalInstantiationException();%0A%09%7D%0A%09%0A%09/**%0A%09 * @param commandLineArguments%0A%09 * %3Cbr%3EMust not be null%0A%09 */%0A%09public static final void main(final String%5B%5D commandLineArguments) %7B%0A%09%09final CommandLineArgumentsParser arguments = new CommandLineArgumentsParser(commandLineArguments);%0A%09%09final String imagePath = arguments.get(%22image%22, %22%22);%0A%09%09final Image2D image = IMJTools.read(imagePath);%0A%09%09final String key = arguments.get(%22get%22, %22%22);%0A%09%09final Map%3CObject, Object%3E info = new LinkedHashMap%3C%3E();%0A%09%09%0A%09%09info.put(%22path%22, imagePath);%0A%09%09info.put(%22width%22, image.getWidth());%0A%09%09info.put(%22height%22, image.getHeight());%0A%09%09info.put(%22channels%22, image.getChannels());%0A%09%09info.put(%22optimalTileWidth%22, image.getOptimalTileWidth());%0A%09%09info.put(%22optimalTileHeight%22, image.getOptimalTileHeight());%0A%09%09%0A%09%09if (key.isEmpty()) %7B%0A%09%09%09info.forEach((k, v) -%3E System.out.println(k + %22: %22 + v));%0A%09%09%7D else %7B%0A%09%09%09System.out.println(info.get(key));%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Add command line tool PrintInfo.