title: PHP Compress Image with Lossy/Lossless
body: <p>How can I, using PHP, compress an image with Lossy/Lossless compression in a similar way that these two sites compress them:</p>
  
  <p><a href="https://compressor.io/" rel="nofollow">https://compressor.io/</a> and <a href="https://kraken.io/web-interface" rel="nofollow">https://kraken.io/web-interface</a></p>
  
  <p>Thanks!</p>