You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use this code to pixelate an image from an UIImage instance, like this for example:
let image = UIImage(named: "imageName")
let pixelatedImage = image.pixelate(resolution: 10)
imageView.image = pixelatedImage
The image showed in the image view is completely blue. It's correctly pixelated, but blue. An it seems to have appeared with iOS 11.4, it was working fine before.
Any idea why?
The text was updated successfully, but these errors were encountered:
It seems like there is an issue when interpreting a CGImage with alphaInfo == noneSkipFirst in Pixelate.swift file on line 169.
According to Apple, there is more treatment to do:
There is no alpha channel. If the total size of the pixel is greater than the space required for the number of color components in the color space, the most significant bits are ignored.
A workaround for this would be: reload your image with UIImageJPEGRepresentation(image, 1.0) to get a normal alphaInfo such as noneSkipLast which works well.
Hello,
I seem to have an issue when using your lib since iOS 11.4, when I pixelate an image, the image is blue.
Here's my code:
When I use this code to pixelate an image from an UIImage instance, like this for example:
The image showed in the image view is completely blue. It's correctly pixelated, but blue. An it seems to have appeared with iOS 11.4, it was working fine before.
Any idea why?
The text was updated successfully, but these errors were encountered: