Developing and comparing an encoding system using vector quantization and edge detection for image and video compression. Downsample methods provide higher compression ratios and better edge detection compared to Haar transforms, with encoding times of microseconds for images versus seconds for Haar. Edge detection on compressed videos and images shows compression is effective at preserving edges. Compression ratios increased up to 99.67% with downsample versus 75% for Haar, with downsample providing more accurate edge detection. The encoding system applies vector quantization for lossy data compression and edge detection techniques to evaluate compression quality.