Categorygithub.com/akatis/go-image-RCS3
modulepackage
1.1.3
Repository: https://github.com/akatis/go-image-rcs3.git
Documentation: pkg.go.dev

# README

GO IMAGE PROCCESS

What the purpose of this package?

The purpose of this package is to image resizing, compressing processes and adding to S3 Bucket.

How can use this package?

First of all install package and import

go get github.com/akatis/go-image-RMSE
import RCS3 "github.com/akatis/go-image-RCS3"

Resizing and compressing image with using ImgCompress() method.

base64Str := "image_base64_string"
imageFile, _ := RCS3.ImgCompress(240, 240, base64Str)

Create config with using New() method.

config := RCS3.New(&RCS3.S3Config{
S3_ACCESS_KEY: "YOUR_ACCESS_KEY",
S3_SECRET_KEY: "YOUR_SECRET_KEY",
S3_REGION:     "YOUR_REGION",
S3_BUCKET:     "YOUR_BUCKET",
S3_OBJECT_KEY: "YOUR_OBJECT_KEY",
})

Add to S3 with using AddS3() method.

_ = config.AddS3(imageFile, "image.jpg")

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author