Fairoj : Camera quality increased
This commit is contained in:
parent
83800a02ff
commit
89eb3d39d0
@ -1 +1 @@
|
||||
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
||||
{"version":3,"sources":["../../@angular/common/http (ignored)"],"names":[],"mappings":";;;;;AAAA,e","file":"0.js","sourcesContent":["/* (ignored) */\n\n\n//////////////////\n// WEBPACK FOOTER\n// @angular/common/http (ignored)\n// module id = 726\n// module chunks = 0"],"sourceRoot":""}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
18
package-lock.json
generated
18
package-lock.json
generated
@ -151,9 +151,9 @@
|
||||
"integrity": "sha512-tLFRBM3fZJu9eXgbDlcC322e3sBhls8024GwY+/OZxcFCOvNSg/iiO/25Vpioe7LqMyb9nYUOy3yEd7YAthBDg=="
|
||||
},
|
||||
"@ionic-native/camera": {
|
||||
"version": "4.16.0",
|
||||
"resolved": "https://registry.npmjs.org/@ionic-native/camera/-/camera-4.16.0.tgz",
|
||||
"integrity": "sha512-YNa1C8AK7WtNhWMR/KR8U458bdpezu+7rqAlrZyKjLorBlNjGWUSxh8gigYYEf1My4slV517IvonUS49kR04zw=="
|
||||
"version": "4.20.0",
|
||||
"resolved": "https://registry.npmjs.org/@ionic-native/camera/-/camera-4.20.0.tgz",
|
||||
"integrity": "sha512-WnfQq8RV+7ezOqpCyNx9Xgpy7Y8TZehGLSxZXnCqCbFZ72CpC70Q5AV/eTIRGiKkotx2U6nUopYF+gTj1cunFA=="
|
||||
},
|
||||
"@ionic-native/core": {
|
||||
"version": "4.4.0",
|
||||
@ -166,9 +166,9 @@
|
||||
"integrity": "sha512-8yisx2e9JIcOGgTlwYAP7N1pEA7jfBQ6oQQDqHbM6fRIQyx2JLd0Z7KNGqCwbWHG5UulpKfOl07L1X7bu93eiw=="
|
||||
},
|
||||
"@ionic-native/geolocation": {
|
||||
"version": "4.19.0",
|
||||
"resolved": "https://registry.npmjs.org/@ionic-native/geolocation/-/geolocation-4.19.0.tgz",
|
||||
"integrity": "sha512-KapwEDKnQ03nwKUmi7g/bgmsb5pBPIMnZsmx3NSwWPXsfQJuhzqfER4f9oQ/tmsLB1Wici4cXESXTZs3bRYdcw=="
|
||||
"version": "4.20.0",
|
||||
"resolved": "https://registry.npmjs.org/@ionic-native/geolocation/-/geolocation-4.20.0.tgz",
|
||||
"integrity": "sha512-2w/KpWuXVDqGMSDLhBut0Domy3yGolpPTvff/8xP8HGxxf1bcEKQLfoY68viOSuTPt7sg33rWWAKHf2/YOI6Lg=="
|
||||
},
|
||||
"@ionic-native/launch-navigator": {
|
||||
"version": "4.16.0",
|
||||
@ -176,9 +176,9 @@
|
||||
"integrity": "sha512-cBloEL2mNvgb7s64lGZjszgu3BmB/3ZnQNW/hlj0RB14XcsVZo3Fv2u1licDTjjDYUTqU3ybjAt/oV5EOn+pDg=="
|
||||
},
|
||||
"@ionic-native/location-accuracy": {
|
||||
"version": "4.19.0",
|
||||
"resolved": "https://registry.npmjs.org/@ionic-native/location-accuracy/-/location-accuracy-4.19.0.tgz",
|
||||
"integrity": "sha512-jxpAGAzMfaMB7iB48n9M28hKRQdMdQHmUBFJUDf0dFI84QKDTRIScdUTiyW9Ny7AmDSuZdwLGbpC0L3wp73Oeg=="
|
||||
"version": "4.20.0",
|
||||
"resolved": "https://registry.npmjs.org/@ionic-native/location-accuracy/-/location-accuracy-4.20.0.tgz",
|
||||
"integrity": "sha512-GB0kdW+4cZ4dE4319PsVV2zbRnV8qgBUih57195QSz5FRiFC4E0GPE6cVtUWJBrtvcyAMexk1L45bRlv5lYW3w=="
|
||||
},
|
||||
"@ionic-native/market": {
|
||||
"version": "4.20.0",
|
||||
|
||||
@ -30,12 +30,12 @@
|
||||
"@ionic-native/android-permissions": "^4.20.0",
|
||||
"@ionic-native/app-version": "^4.20.0",
|
||||
"@ionic-native/background-geolocation": "^4.20.0",
|
||||
"@ionic-native/camera": "^4.16.0",
|
||||
"@ionic-native/camera": "^4.20.0",
|
||||
"@ionic-native/core": "4.4.0",
|
||||
"@ionic-native/fingerprint-aio": "^4.16.0",
|
||||
"@ionic-native/geolocation": "^4.19.0",
|
||||
"@ionic-native/geolocation": "^4.20.0",
|
||||
"@ionic-native/launch-navigator": "^4.16.0",
|
||||
"@ionic-native/location-accuracy": "^4.19.0",
|
||||
"@ionic-native/location-accuracy": "^4.20.0",
|
||||
"@ionic-native/market": "^4.20.0",
|
||||
"@ionic-native/push": "^4.20.0",
|
||||
"@ionic-native/splash-screen": "4.4.0",
|
||||
@ -112,7 +112,7 @@
|
||||
"cordova-plugin-request-location-accuracy": {},
|
||||
"cordova-plugin-android-permissions": {},
|
||||
"phonegap-plugin-push": {
|
||||
"SENDER_ID": "893175418100",
|
||||
"SENDER_ID": "906855209078",
|
||||
"ANDROID_SUPPORT_V13_VERSION": "27.+",
|
||||
"FCM_VERSION": "11.6.2"
|
||||
},
|
||||
|
||||
@ -188,8 +188,10 @@ checkOtpAccess:boolean = false;
|
||||
this.androidPermissions.requestPermissions([this.androidPermissions.PERMISSION.ACCESS_LOCATION_EXTRA_COMMANDS, this.androidPermissions.PERMISSION.GET_ACCOUNTS]);
|
||||
|
||||
this.androidPermissions.checkPermission(this.androidPermissions.PERMISSION.ACCESS_FINE_LOCATION).then(
|
||||
result => console.log('Has permission?',result.hasPermission),
|
||||
err => this.androidPermissions.requestPermission(this.androidPermissions.PERMISSION.ACCESS_FINE_LOCATION)
|
||||
result => {console.log('Has permission?',result.hasPermission);this.constant.enableAccuracy()},
|
||||
err => this.androidPermissions.requestPermission(this.androidPermissions.PERMISSION.ACCESS_FINE_LOCATION).then(re=>{
|
||||
this.constant.enableAccuracy()
|
||||
})
|
||||
);
|
||||
|
||||
this.androidPermissions.requestPermissions([this.androidPermissions.PERMISSION.ACCESS_FINE_LOCATION, this.androidPermissions.PERMISSION.GET_ACCOUNTS]);
|
||||
|
||||
@ -45,8 +45,8 @@ export class CameraProvider {
|
||||
const options = {
|
||||
quality: 75,
|
||||
destinationType: this.camera.DestinationType.DATA_URL,
|
||||
targetWidth: 500,
|
||||
targetHeight: 600,
|
||||
targetWidth: 900,
|
||||
targetHeight: 900,
|
||||
correctOrientation: true,
|
||||
encodingType: this.camera.EncodingType.PNG,
|
||||
saveToPhotoAlbum:false,
|
||||
@ -133,14 +133,14 @@ export class CameraProvider {
|
||||
|
||||
let text = watermark.text
|
||||
watermark([raw_img])
|
||||
.image(text.upperLeft(dateTime, '18px sans-serif', '#ff0000', 1.0, 40))
|
||||
.image(text.upperLeft(dateTime, '20px sans-serif', '#ff0000', 1.0, 40))
|
||||
.then(img => {
|
||||
raw_img = img.src;
|
||||
console.log("2d", raw_img)
|
||||
|
||||
let Location = `Location : ` + this.geoCords
|
||||
watermark([raw_img])
|
||||
.image(text.upperLeft(Location, '18px sans-serif', '#ff0000', 1.0))
|
||||
.image(text.upperLeft(Location, '20px sans-serif', '#ff0000', 1.0))
|
||||
.then(img => {
|
||||
raw_img = img.src
|
||||
console.log("3rd", raw_img)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user