Uploading to S3 from Laravel Quality Lost
<p>My application uploads images to s3. I use front-end rendering to get the colors of the image, but because uploading to s3 lowers the quality (jpeg'ish), I get more colors then desired.</p>

<p><a href="https://i.stack.imgur.com/YAO4y.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/YAO4y.jpg" alt="enter image description here"></a></p>

<pre><code>$s3 = \Storage::disk('s3');
$s3-&gt;put('/images/file.jpg', '/images/file.jpg', 'public');
</code></pre>

<p>Is there way to prevent this quality loss? I noticed that if I upload the file directly using aws console website, the quality stays the same which is ideal. </p>

<p>Thank you!</p>