Latest 0.0.2
Homepage https://github.com/caojianfeng/ThumbToBlur
License MIT
Platforms ios 7.0
Dependencies GPUImage
Authors

What?

Covert a thumb image to a big blurred image.

thumb => big blurred

Why?

The thumb image file size is small then the blur image one.

This can improve on your network time performance.

How much?

THUMB BLUR DIRECT BLUR
origin(webp 33K) origin(webp 33K)
origin origin
thumb(3,800B) direct
thumb
thumb then resize then blurred blur directly(5,302B)
thumb then blurred blur directly

Blur performance

Dont test performance on your simulator theres no GPU support.

Try on my iPhone 6 . I got this:

8-30 ms for a (320,213)pic

2016-08-18 13:11:09.880 testBlurUrl[5403:4840131] image 'test.webp' not found
2016-08-18 13:11:09.885 testBlurUrl[5403:4840131] using image 'test.jpg'
2016-08-18 13:11:09.886 testBlurUrl[5403:4840131] image size = (320,213)
2016-08-18 13:11:13.887 testBlurUrl[5403:4840131] begin 1471497073887
2016-08-18 13:11:13.917 testBlurUrl[5403:4840162] end  1471497073917 , used 30ms
2016-08-18 13:11:17.021 testBlurUrl[5403:4840131] begin 1471497077021
2016-08-18 13:11:17.039 testBlurUrl[5403:4840162] end  1471497077039 , used 18ms
2016-08-18 13:11:18.240 testBlurUrl[5403:4840131] begin 1471497078240
2016-08-18 13:11:18.259 testBlurUrl[5403:4840163] end  1471497078259 , used 19ms
2016-08-18 13:11:19.506 testBlurUrl[5403:4840131] begin 1471497079506
2016-08-18 13:11:19.514 testBlurUrl[5403:4840162] end  1471497079514 , used 8ms
2016-08-18 13:11:20.473 testBlurUrl[5403:4840131] begin 1471497080473
2016-08-18 13:11:20.481 testBlurUrl[5403:4840163] end  1471497080481 , used 8ms
2016-08-18 13:11:21.157 testBlurUrl[5403:4840131] begin 1471497081157
2016-08-18 13:11:21.166 testBlurUrl[5403:4840155] end  1471497081166 , used 9ms
2016-08-18 13:11:21.758 testBlurUrl[5403:4840131] begin 1471497081758
2016-08-18 13:11:21.768 testBlurUrl[5403:4840155] end  1471497081768 , used 10ms
2016-08-18 13:11:22.641 testBlurUrl[5403:4840131] begin 1471497082641
2016-08-18 13:11:22.649 testBlurUrl[5403:4840162] end  1471497082649 , used 8ms

Latest podspec

{
    "name": "ThumbToBlur",
    "version": "0.0.2",
    "summary": "Make a thumb image to big and blur image.",
    "description": "*Make a thumb image to big and blur image. n *The thumb image is small then the blur image. This will fast your network.n *Base On GPUImage",
    "homepage": "https://github.com/caojianfeng/ThumbToBlur",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "caojianfeng": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/caojianfeng/ThumbToBlur.git",
        "tag": "0.0.2"
    },
    "source_files": [
        "ThumbToBlur",
        "ThumbToBlur/ThumbToBlur/**/*.{h,m}"
    ],
    "dependencies": {
        "GPUImage": []
    }
}

Pin It on Pinterest

Share This