|
@@ -42,7 +42,7 @@ open class PQImageFilter: PQBaseFilter {
|
|
|
newImage = UIImage(contentsOfFile: documensDirectory + sticker.locationPath)
|
|
|
//try find image file frome in BFFramework bundle
|
|
|
if(newImage == nil){
|
|
|
- newImage = UIImage().BF_Image(named: sticker.locationPath)
|
|
|
+ newImage = UIImage.moduleImage(named: sticker.locationPath, moduleName: "BFFramework",isAssets: false)
|
|
|
}
|
|
|
|
|
|
// 如果是预览时 对原图进行缩放处理
|
|
@@ -132,7 +132,7 @@ open class PQImageFilter: PQBaseFilter {
|
|
|
// 取纹理坐标
|
|
|
var textureCoordinates = PQGPUImageTools.getTextureCoordinates(sticker: mSticker!, textureSize: newImage!.size, cannvasSize: inputSize)
|
|
|
|
|
|
- BFLog(2, message: "textureCoordinates is \(textureCoordinates)")
|
|
|
+ BFLog(2, message: "textureCoordinates is \(textureCoordinates) image size :\(newImage!.size ) cannvasSize:\(inputSize)")
|
|
|
|
|
|
// imageTexture 有可能被析构导致黑屏
|
|
|
if imageTexture == 0 && newImage?.cgImage != nil {
|