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
i have this problem too. But when i change "if (alpha < 1) { }" to "if (alpha <= 1) { }" it also have some problem the webPimage has some white cover on it.
ALAssetRepresentation *assetRep = [currentAsset defaultRepresentation];
CGImageRef imgRef = [assetRep fullResolutionImage];
UIImage *postImage = [UIImage imageWithCGImage:imgRef scale:assetRep.scale orientation:UIImageOrientationUp];
NSData *imageData = [UIImage imageToWebP:postImg quality:50.f];
then show this imageData in the app, the image Color is wrong. but if I convert native png or jpg to NSData ,it is right. I don't know why.
like this ,it is right.
UIImage *image = [UIImage imageNamed:@"xxx.png"];
NSData *imageData = [UIImage imageToWebP:image quality:50.f];
The text was updated successfully, but these errors were encountered: