title: Client-Side v/s Server-Side image compression
body: <p>I am working on something where users can upload pictures(size of image is not limited). Now I have two options either <strong>compressing the image using PHP(Server side) or compressing the image on client's machine using JavaScript and then uploading</strong> it to the server. I wanted to ask <strong>which approach out of the two would be better</strong> to implement? Compression on server might lead to heavy load on the server so I thought of client side compression however if I upload an image of bigger size (lets assume 12MB or so) then browser freezes up for a while due to the script.</p>
  
  <p>There is as such no code just a theoretical question. Currently I am using
  <a href="https://github.com/brunobar79/J-I-C" rel="noreferrer">J-I-C</a> for client side compression</p>
  
  <p><strong>Any other good library for client side image compression? and which approach would be better?</strong> Any help would be much appreciated. </p>