# Take a picture not bigger than XxY (Native Camera)

**URL:** <https://forum.ionicframework.com/t/take-a-picture-not-bigger-than-xxy-native-camera/80915>\
**Category:** ionic-v3\
**Created:** [February 24, 2017, 6:48pm UTC](https://forum.ionicframework.com/t/take-a-picture-not-bigger-than-xxy-native-camera/80915 "2017-02-24T18:48:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmitMY](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/amitmy/32/105900_2.png) [@AmitMY](https://forum.ionicframework.com/u/AmitMY)\
**Post date:** [February 24, 2017, 6:48pm UTC](https://forum.ionicframework.com/t/take-a-picture-not-bigger-than-xxy-native-camera/80915/1 "2017-02-24T18:48:41Z")

</div>

I am using this plugin: [https://ionicframework.com/docs/v2/native/camera/](https://ionicframework.com/docs/v2/native/camera/) to get an image from camera/photo-library  
Uploading those images take a long time, and I was wondering if there is an option to set a maxHeight and maxWidth for the image, for example 1000x1000, so the image ratio stays whatever it is, and the image compresses to that resolution as for example:  
1920x1080 =\> 1000x562  
1080x1920 =\> 562x1000

---

<div class="post-metadata">

**Author:** ![rudolfnoe](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@rudolfnoe](https://forum.ionicframework.com/u/rudolfnoe)\
**Post date:** [February 24, 2017, 7:44pm UTC](https://forum.ionicframework.com/t/take-a-picture-not-bigger-than-xxy-native-camera/80915/2 "2017-02-24T19:44:42Z")

</div>

Hi,

for this you can use the Image-Resize plugin:

> **[Ionic Framework](https://ionicframework.com/docs/native/image-resizer/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

Rudolf

---

<div class="post-metadata">

**Author:** ![AmitMY](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/amitmy/32/105900_2.png) [@AmitMY](https://forum.ionicframework.com/u/AmitMY)\
**Post date:** [February 24, 2017, 8:03pm UTC](https://forum.ionicframework.com/t/take-a-picture-not-bigger-than-xxy-native-camera/80915/3 "2017-02-24T20:03:00Z")

</div>

Thanks! It seems I will need to calculate the dimensions myself, but that’s no big problem.
