A few weeks ago I started a small side project - implementing the JPEG specification. Though naive, my attempt was surprisingly fruitful and I managed to get a simple decoder working! But it wasn’t easy; I had to read through the serious & technical specification of JPEG and spent many hours debugging stuff. Which is why I decided to document what I did so that if someone like me ever decides to implement JPEG, they have nothing to worry about! (That is, imagining that someone even visits this blog). Also, this blog was kinda dead and bare, so I guess I needed more content anyway.