<p>Converting my comment(s) into an answer...</p>

<p>Make sure you are using the <strong>ImageMagick</strong> library to handle image manipulation (instead of the default GD library). It provides much better results.</p>

<p>Craft will "clean" every image that gets uploaded. This prevents anyone from accidentally (or intentionally) uploading malicious scripts to your site hidden within an image file.</p>

CC BY-SA 4.0
2019-06-20T15:57:35.413Z
@LindsayD Thank you, defaulting to ImageMagick fixed the problem!
Lara Hilal
CC BY-SA 4.0
2019-06-17T21:39:12.567Z
2019-06-17T21:39:12.567Z
Lindsey D
<p>After I upload an asset (png), the image loses quality. I changed the defaultImageQuality from its default value of 82 to 100 but didn't make a difference. I can't add these assets via FTP as I need users to be able to add them from the admin panel. Any advises? </p>

CC BY-SA 4.0
2019-06-17T21:29:20.997Z
The original assets should not be modified by Craft, at any point (unless an installed + active plugin is making changes)—can you confirm where you're viewing the image, and that an Asset Transform isn't being applied that would covert the image to a JPG when displaying it?
August Miller
CC BY-SA 4.0
2019-06-17T21:30:00.010Z
Are you using ImageMagick or GD? If you're uncertain, it's probably GD (which is worse).
Lindsey D
CC BY-SA 4.0
2019-06-17T21:30:34.243Z
@AugustMiller That's not accurate... Craft will "clean" any uploaded images.
Lindsey D
CC BY-SA 4.0
2019-06-17T21:33:26.223Z
@AugustMiller No image transforms are being used. I am viewing the image on my local site.
Lara Hilal
CC BY-SA 4.0
2019-06-17T21:34:21.643Z
@LindseyD Would it help if I used ImageMagick? Do you think it's related?
Lara Hilal
CC BY-SA 4.0
2019-06-17T21:35:29.977Z
Almost certainly. ImageMagick is a much better library in general.
Lindsey D
<craft3><image>
Craft 3 Image quality is terrible after asset upload from admin panel
# Craft 3 Image quality is terrible after asset upload from admin panel

(Asked by: username_0 on 2019-06-17)

After I upload an asset (png), the image loses quality. I changed the defaultImageQuality from its default value of 82 to 100 but didn't make a difference. I can't add these assets via FTP as I need users to be able to add them from the admin panel. Any advises?

**Tags:** craft3, image
> **Comments:**
> **username_1**: The original assets should not be modified by Craft, at any point (unless an installed + active plugin is making changes)—can you confirm where you're viewing the image, and that an Asset Transform isn't being applied that would covert the image to a JPG when displaying it?  
> **username_2**: Are you using ImageMagick or GD? If you're uncertain, it's probably GD (which is worse).  
> **username_2**: @AugustMiller That's not accurate... Craft will "clean" any uploaded images.  
> **username_0**: @AugustMiller No image transforms are being used. I am viewing the image on my local site.  
> **username_0**: @LindseyD Would it help if I used ImageMagick? Do you think it's related?  
> **username_2**: Almost certainly. ImageMagick is a much better library in general.  

---

## 1 answers

### Answer by username_2 on 2019-06-17. Score: 4 | Accepted answer

Converting my comment(s) into an answer...

Make sure you are using the **ImageMagick** library to handle image manipulation (instead of the default GD library). It provides much better results.

Craft will "clean" every image that gets uploaded. This prevents anyone from accidentally (or intentionally) uploading malicious scripts to your site hidden within an image file.

> **Comments:**
> **username_0**: @LindsayD Thank you, defaulting to ImageMagick fixed the problem!  

---

