Webserver that supports image processing functions in C
- Introduction
- Requirements
- Configuration
This project includes following features:
- Image resize, grayscale and rotation on the fly.
- Error handling for unsupported input, invalid links, invalid filetypes.
The usage for the webserver is as follows:
http://:/v1/:/.../url:
An example for resize would be like this: http://localhost:8080/v1/resize:640x360/url:upload.wikimedia.org/wikipedia/en/a/a9/Example.jpg
For grayscale, change resize:640x360 with grayscale
For rotate, change resize:640x360 with rotate:degrees, i.e, rotate:90 for 90 degrees rotation.
This project requires the following libraries and their dependencies:
Program does not take any arguments during runtime. It can be compiled with the following line on the terminal.
$ gcc Server.c -o server.o get_image.c -lcurl image_proc.c pkg-config --cflags --libs MagickWand``
Compiled version is also included in the repository as server.o.