Skip to content
Sumo is a library that prepares for fast upload for iOS. It is effective when uploading by selecting images continuously.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sumo.xcodeproj OptionでTargetSizeを変更できるように修正 Apr 12, 2017
Sumo.xcworkspace first commit Apr 11, 2017
Sumo OptionでTargetSizeを変更できるように修正 Apr 12, 2017
.gitignore first commit Apr 11, 2017
LICENSE first commit Apr 11, 2017
Podfile first commit Apr 11, 2017
Podfile.lock Update Apr 28, 2017
overview.png Add files via upload Apr 11, 2017


Sumo is a library that prepares for fast upload for iOS. It is effective when uploading by selecting images continuously. Sumo will prepare for uploading immediately after the image is selected. Multiple selected images are compiled into one file and compressed. One compressed file can communicate without overhead.

Feature 🎉

  • ☑️ Non blocking Main thread.
  • ☑️ Fast resizing.
  • ☑️ Task is cancelable.
  • ☑️ Multi sessions.


Sumo consists of sessions and tasks. Multiple tasks are associated with one session, and you can obtain obtain artifacts by zip the session.

override func viewDidLoad() {
    var options: Sumo.Session.Options = Sumo.Session.Options()
    // Target of image resizing
    options.imageTargetSize = CGSize(width: 500, height: 500)
    Sumo.shared.startSession(options: options)

For example in CollectionView's

  • func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
  • func collectionView(_ collectionView: UICollectionView, didDeselectItemAt indexPath: IndexPath)
// Compress and process the image in the background.
func didSelectItem(indexPath: IndexPath, asset: PHAsset) {
    Sumo.shared.startWorflow(asset.localIdentifier) { (error) in
        if let error = error {

// Cancel the image being compressed.
func didDeselectItem(indexPath: IndexPath, asset: PHAsset) {
// Stop all processing.
@objc private func cancel() {

// Cancel the task being processed. The session will continue to remain.
@objc private func reset() {

// Compress the resized photo to zip.
@objc private func zip() { { (url, error) in
        // Transfer to any server.

AssemblyLine is generalized to Sumo.

You can’t perform that action at this time.