An open API service indexing awesome lists of open source software.

https://github.com/jaredpersonalorganization/aws-cdk-go-image-transform

AWS Serverless Image Transform Pipeline created using the CDK and written purely in Go.
https://github.com/jaredpersonalorganization/aws-cdk-go-image-transform

aws aws-lamda cdk golang images sns sqs

Last synced: 30 days ago
JSON representation

AWS Serverless Image Transform Pipeline created using the CDK and written purely in Go.

Awesome Lists containing this project

README

          

After looking back on this project after a couple of months, it's inefficent and overly complicated. But the code can still be used as a reference.

![alt text](https://github.com/JaredHane98/AWS-CDK-GO-IMAGE-TRANSFORM/blob/main/Diagram.png?raw=true)

The user must provide the image transforms during the POST request

## Example
```json
{
"ObjectName": "image.jpg",
"Transforms": [
{
"Name": "grayscale"
},
{
"Name": "edgedetection",
"Params": ["0.5"]
},
]
}
```
## Supported Transforms
- grayscale
- sharpen
- edgedetection
- dilate
- erode
- median
- emboss
- invert
- sepia
- sharpen
- sobel

## Example Usage
```json
{
"ObjectName": "image.jpg",
"Transforms": [
{
"Name": "grayscale"
},
{
"Name": "sharpen"
},
{
"Name": "edgedetection",
"Params": ["0.5"]
},
{
"Name": "dilate",
"Params": ["1"]
},
{
"Name": "erode",
"Params": ["0.75"]
},
{
"Name": "median",
"Params": ["0.24"]
},
{
"Name": "emboss"
},
{
"Name": "invert"
},
{
"Name": "sepia"
},
{
"Name": "sharpen"
},
{
"Name": "sobel"
}
]
}
```

## Input Image
![alt text](https://github.com/JaredHane98/AWS-CDK-GO-IMAGE-TRANSFORM/blob/main/inputimage.jpg?raw=true)

## Output Image
![alt text](https://github.com/JaredHane98/AWS-CDK-GO-IMAGE-TRANSFORM/blob/main/outputimage.jpg?raw=true)

Be aware that you can max out memory usage with high resolutions, potentially causing the Lambda function to time out.