From 9548cf7c74fc5f3f6ad0a31506656fc7fec212bf Mon Sep 17 00:00:00 2001
From: Jake Taylor <jake@elixxir.io>
Date: Fri, 17 Dec 2021 12:47:25 -0600
Subject: [PATCH] added bindings call

---
 api/utils.go      |  2 +-
 bindings/utils.go | 17 +++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 bindings/utils.go

diff --git a/api/utils.go b/api/utils.go
index d7d7915c2..5beed9c37 100644
--- a/api/utils.go
+++ b/api/utils.go
@@ -24,7 +24,7 @@ const (
 )
 
 // 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) {
 	// Convert bytes to a reader
 	imgBuf := bytes.NewReader(imgBytes)
diff --git a/bindings/utils.go b/bindings/utils.go
new file mode 100644
index 000000000..b7249f6b9
--- /dev/null
+++ b/bindings/utils.go
@@ -0,0 +1,17 @@
+////////////////////////////////////////////////////////////////////////////////
+// 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)
+}
-- 
GitLab