Hi,
I have a strange issue with Appeon Mobile when taking photos on iOS.
The photo is taken and saved however just after taking the photo the image is cropped to a square image.
I cannot see why it is doing this and can't see any options for the "of_takefile" or "eon_mobile_str_cameraoption" (Documentation Link)
See screenshots attached. Any ideas?
Setup:
Powerserver 2017 R3 1858 with matching workspace.
Issue on iPad and iPad mini. iOS 10 and 12.
Sample PB Code:
Boolean lb_allowedit
integer li_filetype = 1 // 0 = video
int li_rc
eon_mobile_cameraex uo_camera
Exception l_exception
eon_mobile_str_cameraoption lstr_option
uo_camera = CREATE eon_mobile_cameraex
lb_allowedit = true
/*
li_rc
1 - Take a photo successfully
2 - Record a video successfully
0 - Cancel taking photo or video
-1 - It is called in PowerBuilder or Appeon Web, or there is an error
(as_filepath will return the filepath, returns empty string if cancelled/error)
*/
li_rc = uo_camera.of_takefile(li_filetype, lb_allowedit, as_filepath)
if li_rc < 0 then
l_exception = create Exception
l_exception.SetMessage('Error in function of_take_photo of class n_camera')
throw l_exception
end if
DESTROY uo_camera
return li_rc
Thanks for the reply. I tried to search for the ticket number you mentioned on the standard support page but couldn't find it. Do you have a link for it?
Thanks,
Alan
I found it on the bugzilla one:
https://bugzilla.appeon.com/show_bug.cgi?id=2140
It doesn't sound like my issue as the problem describes it as a quality issue on Android, where as I'm having a crop issue on iOS. I will test with an Android device just to see, and then maybe with the new release. Failing that I'll submit this as a bug report.