Skip to content

devcarlos/Image64Compressor

Repository files navigation

Image64Compressor

Image64Compressor - Image Assets (PDF, PNG, JPEG ) String Base 64 Encode Compressor

Swift 5.0 License

Image64Compressor - Image Assets (PDF, PNG, JPEG ) String Base 64 Encode Compressor

Features

  • Image64Compressor

Requirements

  • iOS 11+
  • Xcode 11
  • Swift 5.0

Usage

Console

  1. Move the Assets (Assets.xcassets) directory you want to compress to your desktop or a working filepath:
mv Assets.xcassets /Users/user/Desktop/Assets
  1. Setup the Image64Compressor Xcode project arguments to your command-line tool:
  • Click on the Scheme named Image64Compressor in the Toolbar:

  • Select Edit Scheme from the menu that appears

  • Ensure Run is selected in the left pane, click the Arguments tab, then click the + sign under Arguments Passed On Launch. Add your working filepath (like /Users/user/Desktop/Assets) as argument and click Close.

  1. Execute the Image64Compressor Xcode project and wait for the process to finish and create your template files.

  2. In case of error check the filepath setup is set correctly

  3. After compression success move the Asset.swift and Items.swift generated files to the example Xcode project and test the Image Base 64 Assets, following the "example" asset.

Contribute

We would love you for the contribution to Image64Compressor, check the LICENSE file for more info.

Authors

License

Image64Compressor is distributed under the MIT license. See LICENSE for more information.

About

Image Assets (PDF, PNG, JPEG ) String Base 64 Encode Compresor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages