I am using Ionic2rc4 and want to use GraphicsMagick library.
After using Camera plugin taking a picture / from photolibrary, use GraphicsMagick to compress the photo before upload it to server.
What I have done was…
The technique I used for resizing an image was to capture the image data, then draw it to an offscreen html Canvas. from there you can resize/rotate etc, then grab the image as jpg or png using canvas.toDataUrl(). You can then post that data to your backend.
I am also using canvas to resize image.
But I am just curios if using GraphicsMagick is a better option or not.
If can’t use GraphicsMagick then I will only using canvas.