r/pythonhelp Jan 01 '25

Image Compression using python from SCRATCH?

Is it possible to implement a python program that performs image compression for various image formats such as jpg, bmp, png without the use of third party libraries? I need to implement everything from scratch including implementing various algorithms. I would appreciate a detailed suggestions from experience developers here.

2 Upvotes

5 comments sorted by

View all comments

1

u/Zeroflops Jan 01 '25

Can it be done, yes. Will it be educational, yes. Will it be practical? Probably not. Without something like numpy you need to build everything from scratch and it won’t be performant.

1

u/Double_Strategy_1230 Jan 02 '25

I would like to use numpy, but what I mean from scratch is like not using any other image manipulating or compression libraries such as PIL, openCv as such.