About Blurry
Blurry is a versatile image processing library built for iOS applications. With Blurry, you can easily apply various image filters, blur effects, and transformations to enhance your visual content and create stunning visuals.
Key Features
- Apply filters to images with simple and intuitive methods
- Create blur effects of different intensities for a visually appealing appeal
- Transform images by rotating, scaling, and flipping them to fit your requirements
- Adjust image brightness, contrast, saturation, and more to enhance visual appeal
- Apply custom color overlays and gradients for creative effects
- Supports UIImage and UIImageView for easy integration with your existing codebase
Installation
To integrate Blurry into your iOS project, you can use either CocoaPods or manually add the library to your project.
CocoaPods
- Open your terminal and navigate to the project directory
- Run the following command to initialize CocoaPods:
pod init
- Add the following line to your project’s podfile:
pod 'Blurry'
- Save the podfile and run the following command:
pod install
- Open the generated .xcworkspace file to work on your project
Manual Installation
- Download the latest version of Blurry from the official repository
- Copy the Blurry folder into your Xcode project
- In Xcode, go to your project settings, select your target, and navigate to the “Build Phases” tab
- Under “Compile Sources,” add all the Swift files from the Blurry folder
Getting Started
To start using Blurry in your iOS project, follow the steps below:
1. Import Blurry
// Swift
import Blurry
// Objective-C
@import Blurry;
2. Apply Filters
Blurry makes it easy to apply filters to your images. Use the following code snippet to apply a filter:
let image = UIImage(named: "example.jpg")
let filteredImage = image?.blurry.appliedFilter(.sepia)
3. Add Blur Effects
Add various blur effects to your images using the Blurry library. Here’s an example of applying a Gaussian blur:
let image = UIImage(named: "example.jpg")
let blurredImage = image?.blurry.appliedBlur(.gaussian(radius: 10.0))
4. Transform Images
Easily rotate, scale, or flip your images with just a few lines of code:
let image = UIImage(named: "example.jpg")
let transformedImage = image?.blurry.rotated(by: .degrees(90))
5. Customize Image Appearance
Adjust the appearance of your images by modifying brightness, contrast, and saturation:
let image = UIImage(named: "example.jpg")
let modifiedImage = image?.blurry.adjustedBrightness(0.5).adjustedContrast(1.2)
Advanced Usage
Blurry offers additional features and customization options that allow you to take your image processing to the next level.
1. Add Color Overlays
Create stunning visual effects by applying color overlays:
let image = UIImage(named: "example.jpg")
let overlayedimage = image?.blurry.appliedOverlay(.color(.blue, intensity: 0.3))
2. Apply Gradients
Apply gradients to your images for a unique and stylish look:
let image = UIImage(named: "example.jpg")
let gradientImage = image?.blurry.appliedGradient(
.linearGradient(colors: [.red, .yellow, .green], startPoint: .top, endPoint: .bottom)
)
Conclusion
Blurry is a powerful image processing library that simplifies the task of applying filters, blur effects, and transformations to your iOS images. Whether you want to enhance the visual appeal or add creative effects, Blurry provides a seamless integration to achieve stunning results effortlessly.