Forum
Default assets compression
Hi,
all assets uploaded via perch interface get heavily compressed.
For ex. this image https://www.trilipiderm.com/perch/resources/mothersday16-1-6.jpg
When i download this image via ftp i can see, it has the correct size and original quality.
The compression is still the same even when I setup the field type like this.
<img data-u="image" src="<perch:content type="image" density="1" quality="100" sharpen="0" id="hp_carousel_image" label="Banner" />" alt="<perch:content id="hp_carousel_alt" type="text" label="Alt text" required="false" />" />
Thank you.
We need to see your Diagnostics Report and template when you post to the forum - thank you!
Hi,
Have you uploaded a new image file since changing the
quality
attribute?I'd suggest using a low level of sharpening to offset the natural softening that will occur when an image is scaled down.
Yes, I did, but with no luck, alwas the same.
<img data-u="image" src="<perch:content type="image" density="1" quality="100" sharpen="0" id="hp_carousel_image" label="Banner" />" alt="<perch:content id="hp_carousel_alt" type="text" label="Alt text" required="false" />" />
Also, when i overwrite uploaded images on ftp with uncompressed versions and look at the files in a browser - it looks compressed.
https://www.trilipiderm.com/perch/resources/mothersday16-1-6.jpg
I just noticed you're not specifying a width or height - in which case Perch is not doing anything to your image. The quality and sharpness only affects image resizing.
If you're seeing a difference between the file you're downloading via HTTP and FTP, then you should look at what's happening on your network. For example, mobile data networks will often heavily compress images.
Thanks Drew, ill look into it.