Created
November 6, 2017 16:03
-
-
Save lacyrhoades/837a9200d5d49851469ec5b8ee24aab2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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