Forum

Thread tagged as: Problem

Image Upload - Compression?

Hi guys,

I'm trying to upload an image through Perch, and I'm getting some weird results. The field it uploads to does have a set width='500', so it looks as though Perch has to resize the image once uploaded into this field - however, it results in a poor quality image.

Here's the original, uploaded to the site: https://staging.safpro.co.uk/cms/resources/ortr50.png Here's the resized version: https://staging.safpro.co.uk/cms/resources/ortr50-w500.png

I've tried this with the image at multiple quality settings, multiple sizes, even uploaded it at 500px wide to try and limit the amount that Perch has to do, but it always results in a poor quality image after Perch has resized it.

Any ideas? Thanks!

Harry Ray

Harry Ray 0 points

  • 4 years ago

Hi Harry

There are quality and sharpen settings you can use on the image field, which might help. I would have a play with those and see what happens. Maybe try this:

<perch:content id="image" type="image" label="Image" width="500" sharpen="0" quality="100" />

That should be the highest quality image with no sharpening, which would for me indicate the least amount of work done by Perch on upload.

More info here:

https://docs.grabaperch.com/templates/field-types/image/

Hi Mike,

no luck, I'm afraid! I've gone from 0 through 100 in increments of ten, and nothing major has changed at all!

Depending on who the build is for, you could always remove the width="500" and just upload a 500px wide image to start with. That way there won't be any image processing done on it. Though I am not sure on your implementation so this might not be possible.

It's probably not ideal, I'll go back to them and discuss our options.

Thanks for the help!

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Can we see your Diagnostics Report please?