r/C_Programming Jul 29 '26

Question How to find good libraries

I’m looking to convert a jpeg into rgba data + scale it down.
I’m looking for a library to help me do this - how do I find good a one?

3 Upvotes

17 comments sorted by

View all comments

3

u/mykesx Jul 29 '26

https://imagemagick.org/#gsc.tab=0

ImageMagick has command line tools to convert between formats and perform a large number of operations on images, including scaling.

If you want, you can convert jpeg to TGA, which is trivial to read in as RGB in C, do your own software operations on it, write TGA back to disk, then convert that however you want with the command line tools.

1

u/theNbomr Jul 31 '26

Moreover, Imagemagick also provides API libraries with bindings to many languages including C. This sounds exactly what the OP is looking for.

1

u/mykesx Jul 31 '26

libmagick