Forum

Thread tagged as: Problem

Image width makes my images look like low quality

<perch:blog id="images" type="image" width="1000" output="tag"/>
<perch:if exists="images">
    <img src="<perch:blog id="images" type="image" width="1000" quality="100" label="Images"/>"/>
</perch:if>

This is the code code im using and get this:

https://bildr.no/image/ZnI5V0Ni.jpeg

Erick Green

Erick Green 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

How large is the original image?

1134x908px. 1,2 MB.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Does the original have those strange colour casts?

No. Almost as it get much compressed but i have set quality to 100. Ive tested to remove the and it all good. Except i need the width tho.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Sorry, I don't understand. Could you post your diagnostics report?

Perch: 2.8.13, PHP: 5.5.29-1~dotdeb+7.1, MySQL: 5.5.44, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.13), assets (2.8.13), categories (2.8.13), perch_blog (4.6), perch_events (1.9.2), perch_forms (1.8.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', 'perch_blog', 'perch_events', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/4/h/erickgreen/www/perch
PERCH_CORE: /home/4/h/erickgreen/www/perch/core
PERCH_RESFILEPATH: /home/4/h/erickgreen/www/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 128M, Max POST 128M, Memory: 129M, Total max file upload: 128M
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/4/h/erickgreen/www
HTTP_HOST: mydomain.com
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

This my original image: https://bildr.no/image/S0xhVjBG.jpeg

This is the image after ive uploaded it to Perch system with the following code: https://bildr.no/image/ZnI5V0Ni.jpeg

<perch:if exists="images">
    <img src="<perch:blog id="images" type="image" width="1000" quality="100" label="Images"/>"/>
</perch:if>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Ah, ok, I thought you were referring to the strange colour casts, but those are in the original too. It looks like it needs more sharpening - try adjusting that attribute.

Tried the sharpen attribute as well, still look the same. It look original if I remove the image width attribute. Weird.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you reuploading after changing the settings?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you have an example of the Perch resized one?

What do you mean? This is the one Perch made: https://bildr.no/image/REhrVHJU.jpeg

Drew McLellan

Drew McLellan 2638 points
Perch Support

Did you rename it? That's not a file name that Perch has generated.

Oh I think the upload-service did that. The file name is "ukraina-i1-w1000.jpg".

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok. That image looks over-sharpened to me. Are you using GD or Imagick?

Ultimately, your web server is never going to do as good a job as PhotoShop. If the quality needs to be precisely controlled, it may be better to upload at the correct size rather than resizing on the server.

I do not use any editors like that. I agree, but some customers of ours dont have access to Photoshop, so I need to set the sizing and quality in Perch.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Quality is the compression level and controls how much data is discarded to reduce the file size.

What settings do you have currently? It looks like you have sharpening set way too high.

No compression level at all. Just noticed the loss of quality or what to say happened when i imported the images to Assets. Both these images under changed apperance after I imported them into Perch Assets. Is this a known problem?

Drew McLellan

Drew McLellan 2638 points
Perch Support

I would suggest that JPG is a poor choice of format for those images. JPG is ideally suited to photographs, not graphics. How do they look as PNGs?