Any example please how to draw image loaded from iPhone photo album ?
I see on the iOS OF Examples ( OF v0072_iOS_release) are only how to draw image from camera …and i modify the code to open the photo album but the app crash when i select the photo from photoalbum.
I’m running into the same problem.
As far as I understand we cannot access images from a library in the same way we access camera images, which makes sense because open framework here actually needs that we wait until we’ve chosen an image and then retrieve that one. However, also cannot figure out what is the “right” way to do it… did you get any further?
No, I have not found a solution for this. No one is interested in my problem, and there is no example in iOS example apps how to get/write images from photoalbum.
I’m experimented with cinder and looks more promising than openframeworks. Also on Cinder forum you can find help and they respond to all beginners questions. I like openframeworks but support from the community is very poor…
Sorry for my english.
I think I don’t agree on this too much, normally you get support here quite quickly. at least all my earlier question have ben answered
good luck with cinder, I’ll dig deeper into the iOS storing mechanisms…
I commented the _imagePicker.cameraOverlayView = nil; but that does not change the xcode warning…
I try to allocate the “photo” in setup() method and work : photo.allocate(ofGetWidth(), ofGetHeight(), OF_IMAGE_COLOR_ALPHA); This may not be the right solution,but the xcode allocate warnings has gone after this.
I think I figured it out myself. As I see when I touched next it was reopening the photo library so I just added a variable that I set false in the setup and as soon as the image is chosen I set it to true and don’t go to the opening the library any more… looks like this in the touchDown then
Don’t know if that’s the most elegant way to deal with it but it seems to work… other suggestions welcome though… (also could I load several images into an array with only opening the photo library once?)
just updated my reply above. think it is solved for now. need to think about if this is useful for my purpose (as the user needs to pick the images, but I would rather want to load them automatically). Good learning experience anyways, I will check out the XML way and as it seems I could store the images as xmls and those could be read automatically right?
I really don’t understand the role of “delete camera” here if “camera->close()” doing the ‘work’ that is supposed to do. As for memory leak I see the imagepicker (close) inside ofxiPhoneImagePicker.m is deallocated in - (void)dealloc.
I expect more changes for iOS on OF_074. I hope that will be in the next OF version.