Skip to content

Instantly share code, notes, and snippets.

@lacyrhoades
Created November 6, 2017 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lacyrhoades/837a9200d5d49851469ec5b8ee24aab2 to your computer and use it in GitHub Desktop.
Save lacyrhoades/837a9200d5d49851469ec5b8ee24aab2 to your computer and use it in GitHub Desktop.
diff --git a/Common/ImageProcessor.swift b/Common/ImageProcessor.swift
index 5afa17c..71d098f 100644
--- a/Common/ImageProcessor.swift
+++ b/Common/ImageProcessor.swift
@@ -23,9 +23,9 @@ class ImageProcessor {
assetFetcher?.images(ofType: .originalImage, forItemID: item.id, completion: { (images) in
var allFiltered: [UIImage] = []
+ self.processingQueue.async {
var filterIterator = item.filters.makeIterator()
for image in images {
-
let colorFilter = ColorCorrectionManager.filterFor(tint: item.tint, andWarmth: item.warmth)
let colorCorrected = colorFilter.image(byFilteringImage: image)
@@ -62,6 +62,7 @@ class ImageProcessor {
}
self.makePrintImages(forItemID: item.id, usingImages: allFiltered, andAssetFetcher: assetFetcher)
+ }
andThen?()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment