Skip to content
Snippets Groups Projects
Select Git revision
  • 9dcf1f2dab75668671a5f989a7ce2c77421673c6
  • main default protected
  • development
  • integration
  • v1.1.5
  • v1.1.4
  • v1.1.3
  • v1.1.2
  • v1.1.1
  • v1.1.0
  • v1.0.0
11 results

BroadcastReport.swift

Blame
  • utils.go 944 B
    ////////////////////////////////////////////////////////////////////////////////
    // 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)
    }
    
    // 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)
    }