GPUImage3 icon indicating copy to clipboard operation
GPUImage3 copied to clipboard

Failed loading image texture

Open emresancaktar opened this issue 5 years ago • 4 comments

I call GPUImage method from another class(Filter.swift) with completion handler.

let toonFilter = ToonFilter()
      let filteredImage = image.filterWithOperation(toonFilter)
      completion(filteredImage)

and I use completion handler to put on imageView but sometimes with some images it crash with this error Failed loading image texture

emresancaktar avatar Dec 27 '19 12:12 emresancaktar

Having the same issue too. Any fix?

kxvn-lx avatar Jun 19 '20 04:06 kxvn-lx

      let resultlookupFilter = LookupFilter()
      resultlookupFilter.lookupImage = PictureInput(image: lutImage)
      resultlookupFilter.intensity = filterModel.userSetIntensity
      let resultImg = self.originalImage.filterWithOperation(resultlookupFilter)

it will be crash.

LipYoung avatar Jul 13 '20 01:07 LipYoung

Maybe I should use GPUImage1.

LipYoung avatar Jul 13 '20 01:07 LipYoung

In my case, the problem was specifically when applying the filters in some large PNG images. One workaround could be convert them to Jpeg, or resize it to smaller sizes if you wanna keep using PNG.

mauroat22 avatar Aug 31 '20 11:08 mauroat22