A simple microservice for creating image thumbnails.
- Go
- Unix sockets
- Unix sockets
- Protocol Buffers support
-
Compile the Protocol Buffers in thumq.proto for your language of choice.
-
Connect to the unix socket.
-
Send a two-part message: a Request (see thumq.proto) and an image. Each message part is prefixed with a 32-bit little-endian size field.
-
Receive a two-part message. The first part is a Response (see thumq.proto) and the second is a scaled/cropped/stripped JPEG image (or empty on error).