title: Resize image, need a good library
body: <p><strong><em>First of all - The problem</em></strong>
  <hr>
  I am developing a web application that enables the user to take a picture with their smartphone, tablet or just browse for a picture on their pc. I need to upload this file to my database, which is working perfectly <strong>IF</strong> the picture is small enough.</p>
  
  <p>After experimenting a bit with certain photos, I found out that a smartphone takes a picture with a size of at least 1MB and this is way to big too upload to my database.</p>
  
  <p>The uploading goes as following:<br/>
  1. Convert the image to a Base64 encoded string.<br/>
  2. Send the string in an array (contains string in pieces) to WebAPI<br/>
  3. Join the strings into one and convert this into byte array.<br/></p>
  
  <p>I noticed that if a file is around 70-90kb, this would be the maximum size of a file that can be inserted in the database. The moment I have a file that is bigger then 100kb, the inserting fails.</p>
  
  <p>So I am searching for a good resizing library to resize the picture that was chosen. I don't know if this is even possible, but everything has to be done client-side.</p>
  
  <p><strong><em>Technology</em></strong><br/>
  <hr>
  I am using Javascript/jQuery and AngularJS for the client side and VB.NET for my WebAPI. This is because I'm doing an internship and don't have another choice to use VB.NET.</p>
  
  <p>But this has nothing to do with the issue, I just need to find a way to compress/resize/minimize the chosen file, so this can be uploaded to the database.</p>
  
  <p>The upload is happening via the $http.post() from AngularJS.</p>
  
  <p>If someone could advice a library, care to help a fellow programmer out with some basic example code? I mostly have trouble figuring out how to use a plugin or library, because I'm quite new to all this. And I would appreciate it if you guys could provide me with at least some information to get me on track.</p>
  
  <p>Thanks in advance!</p>
  
  <p><em>Sorry that I couldn't provide any code or something other, it's more an informative question than a coding problem. This might popup when I have a library that I can use. Also, if there are any remarks, I'll consider them, because I have a deadline and don't have much time left to start fixing small problems. Most of it works by now, except for that image problem.</em></p>