Swiftpack.co -  Dean151/ImageUtility as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Helpers functions performing image operations for iOS
.package(url: "https://github.com/Dean151/ImageUtility.git", from: "0.3.6")


Build Status CocoaPods Compatible Carthage compatible


  • Generate an image using a size and a fill color.
  • Get the average color of an image
  • Check if an image is fully empty or not
  • Resize the image to a specified size
  • Scale the image by a multiplier, of to fit/fill a size
  • Crop an image by a given inset, or to a given target size
  • Trim transparent pixels from an image and/or get the transparent edge insets of an image


This library support iOS >= 9.0, but requires Xcode >= 10.2 since it's builded with Swift 5


Using Cocoapods

Specify in your Podfile:

target 'MyApp' do
    pod 'ImageUtility'

Using Carthage

Specify in your Cartfile

github "Dean151/ImageUtility"


API details and documentation to come soon :)


Stars: 0
Last commit: 4 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

2 years ago

Fixed some function when image.scale != 1.0

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API