Skip to content
Snippets Groups Projects
Commit 1d269c33 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

added bindings call for CompressJpegForPreview

parent fcce59b1
No related branches found
No related tags found
1 merge request!170Release
...@@ -15,3 +15,9 @@ import "gitlab.com/elixxir/client/api" ...@@ -15,3 +15,9 @@ import "gitlab.com/elixxir/client/api"
func CompressJpeg(imgBytes []byte) ([]byte, error) { func CompressJpeg(imgBytes []byte) ([]byte, error) {
return api.CompressJpeg(imgBytes) return api.CompressJpeg(imgBytes)
} }
// CompressJpegForPreview takes a JPEG image in byte format
// and compresses it based on desired output size
func CompressJpegForPreview(imgBytes []byte) ([]byte, error) {
return api.CompressJpegForPreview(imgBytes)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment