I'm facing a very odd thing here... When I take one photo and then I select it into my iOS app. I'm doing some image filtering. I would like to use the following code to get its width and height. But interesting thing is method "CGImageGetWidth" would return the photo's height, and method "CGImageGetHeight" would return width. I don't know why. If I just save one image into my album from web pages, and then I put it in my iOS app, then it works well.
CGImageRef cgimage = image.CGImage;
size_t width = CGImageGetWidth(cgimage);
size_t height = CGImageGetHeight(cgimage);
Someone can help me?