Resolved:
As DocumentDialog, choosing from files, also do not resize images, I replace at 161:
var attachedFilePath = filePrefix + attachmentsFolder.path + "/"+ attachmentfileInfo.displayName
with
var attachedFilePath = attachmentsFolder.path + "/"+ attachmentfileInfo.displayName
and below 163 add:
app.selectedImageFilePath = attachedFilePath
var path = AppFramework.resolvedPath(app.selectedImageFilePath)
resizeImage(path)
So now the app resize images, choosing from files, further simply copy ready DocumentDialog code to CameraDialog section, replacing its code, and that's all. Now images are resized if they come from camera. Further testing, and if any issues will report here.
Regards