commandline tool to generate a json file from a small image