The Image Resizer repository consists of two applications. Below describes them.
ImageResizer
: SpringBoot application- Takes an image as an input stream and a query parameter indicating whether the client is a mobile device, compresses the image based on the device type, then returns the image as a BufferedImage.
Akamai EdgeWorkers function
stored in theedgeworkers
folder- Takes a user request for an image, gets the image from the origin, passes it to the
ImageResizer
, then returns the result to the client
- Takes a user request for an image, gets the image from the origin, passes it to the
The diagram below depicts the flow: