diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m index cb53932..b2c058a 100644 --- a/src/ios/CDVCamera.m +++ b/src/ios/CDVCamera.m @@ -532,6 +532,10 @@ static NSSet* org_apache_cordova_validArrowDirections; scaledSize = CGSizeMake(MIN(width * scaleFactor, targetWidth), MIN(height * scaleFactor, targetHeight)); } + // If the pixels are floats, it causes a white line in iOS8 and probably other versions too + scaledSize.width = (int)scaledSize.width; + scaledSize.height = (int)scaledSize.height; + UIGraphicsBeginImageContext(scaledSize); // this will resize [sourceImage drawInRect:CGRectMake(0, 0, scaledSize.width, scaledSize.height)];