Skip to content
Snippets Groups Projects
Commit 9548cf7c authored by Jake Taylor's avatar Jake Taylor
Browse files

added bindings call

parent 9aa61726
Branches
Tags
2 merge requests!117Release,!85added image compression api
...@@ -24,7 +24,7 @@ const ( ...@@ -24,7 +24,7 @@ const (
) )
// CompressJpeg takes a JPEG image in byte format // CompressJpeg takes a JPEG image in byte format
// and compresses it based on the above consts // and compresses it based on desired output size
func CompressJpeg(imgBytes []byte) ([]byte, error) { func CompressJpeg(imgBytes []byte) ([]byte, error) {
// Convert bytes to a reader // Convert bytes to a reader
imgBuf := bytes.NewReader(imgBytes) imgBuf := bytes.NewReader(imgBytes)
......
////////////////////////////////////////////////////////////////////////////////
// Copyright © 2021 Privategrity Corporation /
// /
// All rights reserved. /
////////////////////////////////////////////////////////////////////////////////
// Provides various utility functions for access over the bindings
package bindings
import "gitlab.com/elixxir/client/api"
// CompressJpeg takes a JPEG image in byte format
// and compresses it based on desired output size
func CompressJpeg(imgBytes []byte) ([]byte, error) {
return api.CompressJpeg(imgBytes)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment