Giter Site home page Giter Site logo

zn-yuan / qsimageprocess Goto Github PK

View Code? Open in Web Editor NEW

This project forked from buaa0300/qsimageprocess

0.0 1.0 0.0 716 KB

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

License: MIT License

Ruby 0.12% Objective-C 90.09% Objective-C++ 6.51% C 1.87% Shell 1.41%

qsimageprocess's Introduction

QSImageProcess

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];

qsimageprocess's People

Contributors

buaa0300 avatar

Watchers

zn-yuan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.