title: What are those two representations of the same jpg image and how to convert one to another?
body: <h2>First representation</h2>
  <p><a href="https://i.stack.imgur.com/SfFEc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SfFEc.png" alt="First representation" /></a></p>
  <h2>Second representation</h2>
  <p><a href="https://i.stack.imgur.com/1YESf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1YESf.png" alt="Second representation" /></a></p>
  <p>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?</p>
  <p>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.</p>