TinyCrayon alternatives and similar libraries
Based on the "Images" category.
Alternatively, view TinyCrayon alternatives based on common mentions on social networks and blogs.
-
SDWebImage
Asynchronous image downloader with cache support as a UIImageView category -
Kingfisher
A lightweight, pure-Swift library for downloading and caching images from the web. -
SwiftGen-Assets
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
GPUImage 2
GPUImage 2 is a BSD-licensed Swift framework for GPU-accelerated video and image processing. -
HanekeSwift
A lightweight generic cache for iOS written in Swift with extra love for images. -
SkyFloatingLabelTextField
A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift. -
AlamofireImage
AlamofireImage is an image component library for Alamofire -
UIImageColors
Fetches the most dominant and prominent colors from an image. -
Brightroom
📷 A composable image editor using Core Image and Metal. [Moved to: https://github.com/FluidGroup/Brightroom] -
GPUImage 3
GPUImage 3 is a BSD-licensed Swift framework for GPU-accelerated video and image processing using Metal. -
APNGKit
High performance and delightful way to play with APNG format in iOS. -
Lightbox
:milky_way: A convenient and easy to use image viewer for your iOS app -
SwiftGif
[UNMAINTAINED] 🌠 A small UIImage extension with gif support -
CTPanoramaView
A library that displays spherical or cylindrical panoramas with touch or motion based controls. -
ImageScout
A Swift implementation of fastimage. Supports PNG, GIF, and JPEG. -
FMPhotoPicker
A modern, simple and zero-dependency photo picker with an elegant and customizable image editor -
AXPhotoViewer
An iOS/tvOS photo gallery viewer, useful for viewing a large (or small!) number of photos. -
PassportScanner
Scan the MRZ code of a passport and extract the firstname, lastname, passport number, nationality, date of birth, expiration date and personal numer. -
Viewer
Image viewer (or Lightbox) with support for local and remote videos and images -
XAnimatedImage
XAnimatedImage is a performant animated GIF engine for iOS written in Swift based on FLAnimatedImage -
JLStickerTextView
add text(multiple line support) to imageView, edit, rotate or resize them as you want, then render the text on image -
UIImageView-BetterFace-Swift
autoresize images and if any face discovered refine the position of the image. -
Harbeth
🎨 GPU accelerated image / video and camera filter library based on Metal. Support macOS & iOS. 图像、视频、相机滤镜框架 -
MapleBacon
🍁🥓 Lightweight and fast Swift library for image downloading, caching and transformations -
Moa
An image download extension of the image view written in Swift for iOS, tvOS and macOS. -
KFSwiftImageLoader
An extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memory and disk caching for iOS and Watch. -
MCScratchImageView
A custom ImageView that is used to cover the surface of other view like a scratch card, user can swipe the mulch to see the view below. -
ImageLoader
A lightweight and fast image loader for iOS written in Swift. -
FacebookImagePicker
FacebookImagePicker is Facebook album photo picker written in Swift. -
DTPhotoViewerController
A fully customizable photo viewer ViewController to display single photo or collection of photos, inspired by Facebook photo viewer. -
ImageDetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api. -
LetterAvatarKit
📲 Use this extension 🧩 to create letter-based avatars or placeholders 🎭 to be utilized within your app
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of TinyCrayon or a related project?
README
TinyCrayon SDK for iOS
A smart and easy-to-use image masking and cutout SDK for mobile apps.
TinyCrayon SDK provides tools for adding image cutout and layer mask capabilities to your mobile applications.
![]() |
![]() |
---|---|
Quick Select Tool | Hair Brush Tool |
Try our sample apps Image Eraser, Color Effect, Focus Effect.
Table of Contents
Overview
TinyCrayon SDK provides tools for adding image cutout and layer mask capabilities to your mobile applications.
Image layer mask is a fundamental technique in image manipulations. It allows you to selectively modify the opacity (transparency) of the layer they belong to. This flexibility to define the opacity of different areas of a layer is the basis for more interesting image manipulation techniques such as selective coloring and luminosity masking.
The current version of TinyCrayon SDK provides the following three tools:
- Quick Select: Smart and easy to use, users just need to select part of the object and the edge detection algorithm will find the boundary.
- Hair Brush: Smooth and natual looking, paint on the hair/fur of an object and the algorithm will select the hair/fur for you in high quality.
- Regular Brush: A regular brush tool with the capability to adjust its size, hardness and opacity.
Notes
- No Ads: From 5.0.1 and later versions, ads have been removed from the SDK.
- UI customization: We are reorganizing the code now and will open source the swift code in the future, you will be able to customize your UI at that time.
Features
- Free: TinyCrayon SDK is provided under MIT license, you can use it in your commercial applications for free!
- iPad support: TinyCrayon SDK uses auto layout for its views and adapts to each screen size - iPhone or iPad.
- Highly customizable: Style the UI, view modes and localized languages as you wish.
- Swift: Keeping up with time, we chose Swift as the main development language of the TinyCrayon SDK, leading to leaner easier code.
- Objective-C support: All of our public API is Objective-C compatible.
Installation
Prerequisites
- Xcode 9.0 or later.
- A physical iOS device.
- Recommended: installation of CocoaPods to simplify dependency management.
Streamlined, using CocoaPods
TinyCrayon SDK is available via CocoaPods. If you're new to CocoaPods, this Getting Started Guide will help you. CocoaPods is the preferred and simplest way to use the TinyCrayon SDK.
Important: Please make sure that you have a CocoaPods version >= 0.39.0 installed. You can check your version of CocoaPods with pod --version
.
Here's what you have to add to your Podfile
(if you do not have Podfile
, create one in your project root directory):
target 'MyApp' do
pod 'TinyCrayon'
end
Then run pod install
in your project root directory (same directory as your Podfile
).
Open MyApp.xcworkspace and build.
Manually, using the SDK download
If you don't want to use Cocoapods you can still take advantage of the TinyCrayon SDK by importing the frameworks directly.
Download the SDK
- Download the TinyCrayon SDK zip (this is a ~20MB file and may take some time).
- Unzip the TinyCrayon.zip
Add the framework
- Drag
TCCore.framework
into theLinked Frameworks and Libraries
section of your target. - Drag
TCMask.framework
into theEmbedded Binaries
section of your target.
Settings for Objective-C
If your project is using Objective-C, set Always Embed Swift Standard Libraries
to be YES in your Build Settings.
Usage
Add a TCMaskView
The TCMaskView
class is responsible to create a UIViewController
for the user to mask the image.
To present a TCMaskView
:
Swift
let maskView = TCMaskView(image: image)
maskView.delegate = self
maskView.presentFrom(rootViewController: self, animated: true)
Objective-C
TCMaskView *maskView = [[TCMaskView alloc] initWithImage:image];
maskView.delegate = self;
[maskView presentFromRootViewController:self animated:true];
The delegate of the TCMaskView
can be used to be notified when the user cancels or completes the edit. In last case the function tcMaskViewDidComplete(mask:image:)
is called.
TCMask class
TCMask
is provided by TCMaskViewDelegate
functions as the first parameter when the user cancels or completes the edit. For example, when the user completes the edit with TCMaskView
:
swift
func tcMaskViewDidComplete(mask: TCMask, image: UIImage) {}
Objective-C
- (void)tcMaskViewDidCompleteWithMask:(TCMask *)mask image:(UIImage *)image {}
TCMask
is an encapsulation of image masking result from TCMaskView
, it has the following properties:
- data: An array of 8-bits unsigned char, its length is equal to the number of pixels of the image in
TCMaskView
. Each element in data represents the mask value. - size: The size of mask, which is equal to the size of the image in
TCMaskView
.
TCMask
also provides some simple and easy to use functions to process layer mask with image. For example, to cutout an object:
Swift
let outputImage = mask.cutout(image: image, resize: false)
Objective-C
UIImage *outputImage = [mask cutoutWithImage:image resize:false];
To try these examples, and find out about more options please take a look at the Examples.
Further reading
- Try our sample apps Image Eraser, Color Effect, Focus Effect.
- Check out TinyCrayon guides and API reference for more details.
License
The MIT license
*Note that all licence references and agreements mentioned in the TinyCrayon README section above
are relevant to that project's source code only.