Resize Image before upload

Can any one help me > How can I resize the image to a Fixed width (1280 px), Length will be as per aspect ratio, Convert the image to jpeg before upload. I am using Ionic 5 with angular.

Hi @Mizan84,

I can recommend this library:

Set cropperMinWidth and cropperMaxWidth to 1280px.

1 Like

Can this image cropper resize an image also? I don’t want to crop, keep the full image but resized.

Yes, you can use the resizeToWidth attribute to archive this :slight_smile:

I’ve been using this for so long and it never disappoints me. Thanks for sharing this information.