First representation
Second representation
Those are the same image. The first representation was given to me when I read the image in python, but my goal is to get to the second representation. How can I convert one to another? Is it possible?
EDIT1: It is a jpg image. I'm building a simple web server and trying to insert this image in a HTTP content to send to a web browser, but the browser doesn't seem to recognize the first representation (the one I've got with python), however, when I go to a site that has the same image and I analyze (using Wireshark) the HTTP packet, it sends me the second representation, so I thought I had to use the second one in order to send it through HTTP to a web browser.