Which is the better location to compress images ? In the browswer or on the server?
<p>I have a Django project and i allow users to upload images. I don't want to limit image upload size for users. But want to compress the image after they select and store them. I want to understand which is better:</p>

<ol>
<li>Compress using java-script on the browser.</li>
<li>Back end server using python libraries.</li>
</ol>

<p>Also it will be helpful if links can be provided to implement the better approach.</p>

<p>I advice you to compress on the browser in order to :</p>

<ul>
<li>avoid loading the server with many CPU and RAM heavy consuming calculations (as numerous as number of clients)</li>
<li>dwindle bandwith needed when transfert image threw the network</li>
</ul>

javascript python html django image-compression