Skip to content

Easy solution for filter images and best fit for custom filter control for photo & video

License

Notifications You must be signed in to change notification settings

BluePick/DSImageFilterHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSImageFilterHelper

Easy solution for filter images and best fit for custom filter control for photo & video

Name Filter
Normal No Filter
Chrome CIPhotoEffectChrome
Fade CIPhotoEffectFade
Instant CIPhotoEffectInstant
Mono CIPhotoEffectMono
Noir CIPhotoEffectNoir
Process CIPhotoEffectProcess
Tonal CIPhotoEffectTonal
Transfer CIPhotoEffectTransfer
Tone CILinearToSRGBToneCurve
Linear CISRGBToneCurveToLinear

Usage

Filter image

var imageFilterSet: [ImageFilter]?
DSImageFilterHelper.shared.createFilteredImages(filters: [.normal, .chrome], image: #imageLiteral(resourceName: "Barbie.jpg")) { (imgSet) in
            self.imageFilterSet = imgSet
            // imgSet[1].filter.value --> CIPhotoEffectChrome
            // imgSet[1].filter.name --> Chrome
            // imgSet[1].image --> get filtered image
            // COLLECTION VIEW RELOAD
        }

Filtered Thumb images

DSImageFilterHelper.shared.resizeImage(image: #imageLiteral(resourceName: "Barbie.jpg"), resizedSize: CGSize(width: 60, height: 60))

Generate all filters image

DSImageFilterHelper.shared.createFilteredImages(filters: Filter.allValues, image: DSImageFilterHelper.shared.resizeImage(image: #imageLiteral(resourceName: "Barbie.jpg"), resizedSize: CGSize(width: 60, height: 60)) ) { (imgSet) in
            self.imageFilterSet = imgSet
            // COLLECTION VIEW RELOAD
        }

License

DSImageFilterHelper is released under the MIT license. See LICENSE for details.

About

Easy solution for filter images and best fit for custom filter control for photo & video

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages