Increase image resolutions
parent
838fc601c1
commit
cc63660982
|
@ -10,8 +10,8 @@ import {
|
||||||
import {compressIfNeeded} from '../../../lib/images'
|
import {compressIfNeeded} from '../../../lib/images'
|
||||||
|
|
||||||
const IMAGE_PARAMS = {
|
const IMAGE_PARAMS = {
|
||||||
width: 500,
|
width: 1000,
|
||||||
height: 500,
|
height: 1000,
|
||||||
freeStyleCropEnabled: true,
|
freeStyleCropEnabled: true,
|
||||||
forceJpg: true, // ios only
|
forceJpg: true, // ios only
|
||||||
compressImageQuality: 1.0,
|
compressImageQuality: 1.0,
|
||||||
|
|
|
@ -35,8 +35,8 @@ export function UserAvatar({
|
||||||
openCamera({
|
openCamera({
|
||||||
mediaType: 'photo',
|
mediaType: 'photo',
|
||||||
cropping: true,
|
cropping: true,
|
||||||
width: 400,
|
width: 1000,
|
||||||
height: 400,
|
height: 1000,
|
||||||
cropperCircleOverlay: true,
|
cropperCircleOverlay: true,
|
||||||
forceJpg: true, // ios only
|
forceJpg: true, // ios only
|
||||||
compressImageQuality: 1,
|
compressImageQuality: 1,
|
||||||
|
@ -52,8 +52,8 @@ export function UserAvatar({
|
||||||
await openCropper({
|
await openCropper({
|
||||||
mediaType: 'photo',
|
mediaType: 'photo',
|
||||||
path: item.path,
|
path: item.path,
|
||||||
width: 400,
|
width: 1000,
|
||||||
height: 400,
|
height: 1000,
|
||||||
cropperCircleOverlay: true,
|
cropperCircleOverlay: true,
|
||||||
forceJpg: true, // ios only
|
forceJpg: true, // ios only
|
||||||
compressImageQuality: 1,
|
compressImageQuality: 1,
|
||||||
|
|
|
@ -30,10 +30,10 @@ export function UserBanner({
|
||||||
openCamera({
|
openCamera({
|
||||||
mediaType: 'photo',
|
mediaType: 'photo',
|
||||||
cropping: true,
|
cropping: true,
|
||||||
compressImageMaxWidth: 1500,
|
compressImageMaxWidth: 3000,
|
||||||
width: 1500,
|
width: 3000,
|
||||||
compressImageMaxHeight: 500,
|
compressImageMaxHeight: 1000,
|
||||||
height: 500,
|
height: 1000,
|
||||||
forceJpg: true, // ios only
|
forceJpg: true, // ios only
|
||||||
compressImageQuality: 1,
|
compressImageQuality: 1,
|
||||||
includeExif: true,
|
includeExif: true,
|
||||||
|
@ -49,10 +49,10 @@ export function UserBanner({
|
||||||
await openCropper({
|
await openCropper({
|
||||||
mediaType: 'photo',
|
mediaType: 'photo',
|
||||||
path: item.path,
|
path: item.path,
|
||||||
compressImageMaxWidth: 1500,
|
compressImageMaxWidth: 3000,
|
||||||
width: 1500,
|
width: 3000,
|
||||||
compressImageMaxHeight: 500,
|
compressImageMaxHeight: 1000,
|
||||||
height: 500,
|
height: 1000,
|
||||||
forceJpg: true, // ios only
|
forceJpg: true, // ios only
|
||||||
compressImageQuality: 1,
|
compressImageQuality: 1,
|
||||||
includeExif: true,
|
includeExif: true,
|
||||||
|
|
Loading…
Reference in New Issue