From the course: Exploring C Libraries

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Accessing a JPEG

Accessing a JPEG - C Tutorial

From the course: Exploring C Libraries

Start my 1-month free trial

Accessing a JPEG

- [Man] The C language isn't known for its graphics prowess unless you install a library that can access graphical data. For reading and writing JPEG images one such library is libjpeg. Its home is here on GitHub at https://github.com/windower/libjpeg Now the documentation is good, and you can find plenty of sample code to peruse. You can install libjpeg from here or you can use the shell's package manager to install and the package you want to install is libjpeg62-dev. Here is test code which you can build and run to confirm the libjpeg installation. It outputs the library's version number. At the command prompt, type clang or the compiler name such as GCC or CC and I specify the Wall switch to turn all the warnings. You link in the JPEG library right there and then you type the source code file name. And it compiles and links with no errors or warnings so to run, and you see libjpeg version 62 here the version number on…

Contents