Latest 0.7.0
Homepage https://github.com/Q42/Q42.ImagePreview.swift
License MIT
Platforms ios 8.0, requires ARC
Authors

This is the client library for rendering the image previews.

Look at this blog post for more details.

You can find the .NET server component on Github.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

ImagePreview is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "ImagePreview"

Example

This library extends UIImage with 2 methods.

init?(body: NSData)

func blurredImageWithRadius(blurRadius: CGFloat, tintColor: UIColor?, saturationDeltaFactor: CGFloat, maskImage: UIImage? = nil) -> UIImage?

Take a look at the example project how this is being used.

You can override the headers if you write your own server implementation and the headers do not match.

// version - NSData
ImagePreviewSettings.sharedSettings.headers = [
  1 : NSData(base64EncodedString: "your base64 encoded header", options: [])!
]

Author

Tim van Steenis, [email protected]

License

ImagePreview is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ImagePreview",
    "version": "0.7.0",
    "summary": "Render low-res image previews with only ~200 bytes of unique data generated by the Q42.ImagePreview.net library.",
    "description": "ImagePreview.swift is a Swift client for rendering the ~200 byte preview images generated by the https://github.com/Q42/Q42.ImagePreview.net lib.",
    "homepage": "https://github.com/Q42/Q42.ImagePreview.swift",
    "screenshots": [
        "https://raw.githubusercontent.com/Q42/Q42.ImagePreview.swift/master/demo-resources/screen1.png",
        "https://raw.githubusercontent.com/Q42/Q42.ImagePreview.swift/master/demo-resources/screen2.png"
    ],
    "license": "MIT",
    "authors": {
        "Tim van Steenis": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Q42/Q42.ImagePreview.swift.git",
        "tag": "0.7.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.2",
    "requires_arc": true,
    "source_files": "src/*"
}

Pin It on Pinterest

Share This