Q42.ImagePreview.swift
iOS client for the Q42.ImagePreview.net images.
Install / Use
/learn @Q42/Q42.ImagePreview.swiftREADME
ImagePreview
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.
<!-- [](https://travis-ci.org/Tim van Steenis/ImagePreview) [](http://cocoapods.org/pods/ImagePreview) [](http://cocoapods.org/pods/ImagePreview) [](http://cocoapods.org/pods/ImagePreview) -->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, tims@q42.nl
License
ImagePreview is available under the MIT license. See the LICENSE file for more info.
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
