C++/C code to convert .bmp to .jpg

Hello all,

I'm trying to find some code to convert a .bmp file to a .jpg file without having to link in any libraries to do this. Does anyone happen to have any existing code that will do this conversion? I've searched all over the web and can't find anything :(

Any help would be GREATLY appreciated!
Last edited on
Without any libraries, that's a rather complicated undertaking. jpg uses some clever cosine transforms and the like. Writing all your own code to do this will not be simple.

How about if we tell you an easy way to do it, but with a library involved?
ok, that sounds good. I'm all ears :)
Windows already has gdiplus builtin, other operating systems will require external libraries.
Topic archived. No new replies allowed.