내 iPad 앱에서 여러 사진을 찍은 다음 모든 이미지를 압축하여 서버에 업로드 할 수 있습니다. 내가 직면하는 문제는 큰 크기의 이미지로 인해, zip 파일의 크기가 증가하고 업로드하는 동안 실패합니다. 이미지를 클릭 한 직후에 저품질 이미지를 어떻게 저장할 수 있습니까? 당신은 모든 이미지 배열에 집어 저장할 수iPad + 이미지 피커 품질을 낮게 설정하십시오.
-(UIImage *)resizeImage:(UIImage *)image width:(float)imgwidth height:(float)imgheight
{
CGSize imgSize;
imgSize.width= imgwidth;
imgSize.height= imgheight;
UIGraphicsBeginImageContext(imgSize);
[image drawInRect:CGRectMake(0,0,imgSize.width,imgSize.height)];
UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return newImage;
}
: