Forum Documentation Showcase Pricing Learn more

Compress image before upload


#1

Hi,

Is there a way to compress/re-size image from camera/local folder before upload?

I need this to speed up pic uploading, I’m creating an app for mobile with pic upload by user intensively.

I already use croppie but seems it upload pic in original size first before processing

Tks in advance
Anwar


#2

Hi @anwarsby :slight_smile: I haven’t tried this yet, but it looks like Kraken’s API may be able to accomplish this:

In their API docs, they state that you can upload files directly using a POST call. I’m not sure if this would be significantly faster than uploading the standard way, but it may be worth a try!


#3

Hi fayewatson … tks for quick share info… :+1:Will give it a try

Anwar


#4

What you need is a javascript library that would do the compression on client side and then upload the picture. I am not sure if this is possible via plugin. It is probbbaly doable though