family photo
This commit is contained in:
@@ -123,7 +123,7 @@ export class EditProfilePage implements OnInit {
|
||||
quality: 90,
|
||||
allowEditing: false,
|
||||
resultType: CameraResultType.Base64,
|
||||
source: CameraSource.Photos // Camera, Photos or Prompt!
|
||||
source: CameraSource.Camera // Camera, Photos or Prompt!
|
||||
});
|
||||
|
||||
if (image) {
|
||||
@@ -131,6 +131,7 @@ export class EditProfilePage implements OnInit {
|
||||
message: 'Uploading Profile',
|
||||
duration: 5000,
|
||||
});
|
||||
var file_size = parseInt(String(image.base64String.toString().length / 1.3224954) ) ;
|
||||
// this.saveImage(image)
|
||||
//debugger;
|
||||
//image.base64String
|
||||
@@ -141,7 +142,7 @@ export class EditProfilePage implements OnInit {
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
msg_type:'FILE',
|
||||
file_name: `family-banner.${image.format}`,
|
||||
file_size: image.base64String.toString().length,
|
||||
file_size: file_size,
|
||||
file_type: `image/${image.format}`,
|
||||
file_data: image.base64String
|
||||
};
|
||||
|
||||
@@ -214,6 +214,15 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div class="bg_white">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="bg_white">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -4,6 +4,7 @@ import {Router} from "@angular/router";
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
import {WrenchService} from "../../services/wrench.service";
|
||||
import { Camera, CameraResultType, CameraSource, Photo } from '@capacitor/camera';
|
||||
import {compareNumbers} from "@angular/compiler-cli/src/version_helpers";
|
||||
|
||||
@Component({
|
||||
selector: 'app-familysettings',
|
||||
@@ -57,6 +58,7 @@ export class FamilysettingsPage implements OnInit {
|
||||
message: 'Uploading Banner',
|
||||
duration: 5000,
|
||||
});
|
||||
var file_size = parseInt(String(image.base64String.toString().length / 1.3224954) ) ;
|
||||
// this.saveImage(image)
|
||||
//debugger;
|
||||
//image.base64String
|
||||
@@ -67,7 +69,7 @@ export class FamilysettingsPage implements OnInit {
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
msg_type:'FILE',
|
||||
file_name: `family-banner.${image.format}`,
|
||||
file_size: image.base64String.toString().length,
|
||||
file_size: file_size ,
|
||||
file_type: `image/${image.format}`,
|
||||
file_data: image.base64String
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user