.NET Core and T4 Templates for generating code

I’m working on a project where I need to take a JPG image and then generate some code that is based on the image.  So for this project I would like to: Create a console application Parse in an image file as input Export a formatted text file based on the image using a code