Latest 2.0
Homepage https://github.com/Job-Yang/JYImageTool
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit
Authors

License MIT 
CocoaPods 
CocoaPods 
Support 

Useful image tools for iOS

Features

  • Extract the primary color of the image(Multiple modes)
  • Extract the image pixel color
  • Contrast image is equal (based on pixel rather than image name)

Usage

Extract the primary color of the image

UIColor *whiteColor = [UIColor colorWithRed:1.f green:1.f blue:1.f alpha:1.f];
NSArray *colorArr = [[JYImageTool tool] extractBrightColorsFromImage:image avoidColor:whiteColor maxCount:10];

Extract the image pixel color

UIColor *color = [[JYImageTool tool] pixelColorAtLocation:point inImage:image formImageRect:frame];

Contrast image is equal

BOOL isEqual = [[JYImageTool tool] isEqualToImage:imageOne imageTwo:imageTwo];
if (isEqual) {
    //...Do something..
}
else {
    //...Do something..
}

Installation

CocoaPods

  1. Add pod 'JYImageTool' to your Podfile.
  2. Run pod install or pod update.
  3. Import "JYImageTool.h".

Manually

  1. Download all the files in the JYImageTool subdirectory.
  2. Add the source files to your Xcode project.
  3. Import JYImageTool.h.

License

JYImageTool is released under the MIT license. See LICENSE file for details.

Latest podspec

{
    "name": "JYImageTool",
    "summary": "Useful image tools for iOS.",
    "version": "2.0",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Job-Yang": "[email protected]"
    },
    "social_media_url": "http://www.jianshu.com/users/cf7e85326534/latest_articles",
    "homepage": "https://github.com/Job-Yang/JYImageTool",
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/Job-Yang/JYImageTool.git",
        "tag": "2.0"
    },
    "requires_arc": true,
    "source_files": "JYImageTool/**/*.{h,m}",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This