This web application will accept an image as input and output HTML code that if rendered will be equal to the given image
Why not?
Email clients do not show images by default. But most of them render HTML code. Sometimes it worth to make image file size bigger but be sure that image will show up in emails. Like a company logo.
This is bad code. Written in a few hours.
input type="file"
work