title: A code for step by step JPEG compression
body: <p>The JPEG compression steps are as follows:</p>
  
  <p><strong>Raw image data</strong> -> forward DCT -> Quantization -> Entropy encoding -> <strong>JPEG image</strong></p>
  
  <p>There are numbers of converters and APIs out there and the converting process is a single API call. I was unable to find a step by step code. My question is where can I find a code for each individual step, or can I perform these individual steps one by one and produce a standard JPEG image? I am using EmguCV for my image steganography project.</p>