Latest 1.0.1
Homepage https://github.com/buaa0300/QSImageProcess
License MIT
Platforms ios 7.0, requires ARC
Dependencies QSDispatchQueue, SDWebImage
Authors

A high-performance and convenient tool for processing local image or web image

Installation

pod 'QSImageProcess'

or put all files in QSImageProcess directory into your project directly.

Then 

#import "QSImageProcess.h"
#import "UIImageView+QSImageProcess.h"

Usage-Demo1

//load web image,default config,you don't need setup
[self.imageView qs_setImageWithURL:url
                placeholderImage:placeholderImage];

//load web image,you should make a custom config
QSImageProcessConfig *config = [QSImageProcessConfig configWithOutputSize:self.imageView.frame.size cornerRadius:cornerRadius corners:UIRectCornerAllCorners];
[self.imageView qs_setImageWithURL:url
                  placeholderImage:placeholderImage
                            config:configs];

Usage-Demo2

//a config of circle output image  
QSImageProcessConfig *config = [QSImageProcessConfig configWithOutputSize:self.imageView.frame.size cornerRadius:cornerRadius corners:UIRectCornerAllCorners];

//load local image asynchronously
[[QSImageProcess sharedInstance]processImage:image config:config completed:^(UIImage *outputImage) {
    self.imageView1.image = outputImage;
}];

//load local image synchronously
self.imageView2.image = [[QSImageProcess sharedInstance]processImage:image config:config];

Latest podspec

{
    "name": "QSImageProcess",
    "version": "1.0.1",
    "summary": "A tool for process local image or web image",
    "homepage": "https://github.com/buaa0300/QSImageProcess",
    "license": "MIT",
    "authors": {
        "u5357u534ecoder": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/buaa0300/QSImageProcess.git",
        "tag": "1.0.1"
    },
    "requires_arc": true,
    "source_files": "QSImageProcess/*",
    "dependencies": {
        "QSDispatchQueue": [],
        "SDWebImage": [
            "~>4.1.0"
        ]
    }
}

Pin It on Pinterest

Share This