Latest 0.3.3
Homepage https://github.com/ML-Works/AsyncBlur
License MIT
Platforms ios 8.0, requires ARC
Authors

Async Blur

Easiest way to blur images on iOS.

Async blur provides api for blurring images and perform some optimizations inside.

Optimizations:

  • use own queue with background priority for render
  • use vImageTentConvolve from AccelerateKit for blur. It’s extremely fast!
  • downscale image to size of passed image view or to size of screen before blur
  • check blur operations in queue and delete unnecessary. You can use AsyncBlur for progress blur render.

There are two ways to use it:

ABImageView

Just modify .blurRadius property.

ABImageView *imageView = [[ABImageView alloc] initWithImage:[UIImage imageNamed:@"example"]];
imageView.blurRadius = 10;

ABManager

Can be used if you need blurred UIImage.

__weak typeof(self) wSelf = self;
[ABManager renderBlurForImage:image forImageView:self.backgroundImageView radius:blurRadius withCallback:^(UIImage *blurredImage) {
    typeof(self) sSelf = self;
    self.backgroundImageView.image = blurredImage;
    self.otherImageView.image = blurredImage;
}];

Author

Vlad Dugnist, [email protected]

License

AsyncBlur is available under the MIT license.

Latest podspec

{
    "name": "AsyncBlur",
    "version": "0.3.3",
    "summary": "Renderring blurred image from UIImage in background with optimizations.",
    "description": "Allows developers render blurred images in background.nIf you want your image view always be blurred, just use ABImageView instead of UIImageView.",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Vladislav Dugnist": "[email protected]"
    },
    "homepage": "https://github.com/ML-Works/AsyncBlur",
    "source": {
        "git": "https://github.com/ML-Works/AsyncBlur.git",
        "tag": "0.3.3"
    },
    "source_files": [
        "AsyncBlur",
        "AsyncBlur/AsyncBlur/**/*.{h,m}"
    ],
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This