Is there any way to configure the quality of the images that Grav resizes / crops? I have tried this with png and jpg so far and though I am just resizing the images by less than 20%, they all get a bit blurry. Any workarounds for that apart from saving images in different sizes from the start (but then why have resize)?
There is not much happening there. Basically I am using the default Quark base.html.twig for general layout (loading css & js as well as defining navigation). And this is what I am using inside my template:
![](portrait.png?classes=float-right&resize=261,197)
# About me
Firstname Lastname
Artist & Psychologist
I have a high resolution display but if I resize the image with other online-tools (even tried with ImageMagick) the result is always good and not blurry. So I assume there must be some kind of setting. If it helps I can post the results here as well as images. And it does not only happen with png but also jpg.
![](willie-fineberg-_NNsOxgemgg-unsplash.jpg?resize=261,328)
Resized using Grav
![](/user/pages/02.typography/willie-fineberg-_NNsOxgemgg-unsplash-gimp.jpg)
Resized using Gimp
![](/user/pages/02.typography/willie-fineberg-_NNsOxgemgg-unsplash.jpg)
Original
All resizing (factor ~ 1/20) is with keeping aspect ratio, using Grav and Gimp.
Used fresh installation of Grav 1.6.23 + Quark
Used browser Chrome
To exclude any effect of Quark’s css/js I used a bare template only containing {{ page.content|raw }}
The following image is a screenshot of the resulting page.
@anon76427325 Thank you for this particular interesting comparison. I am not surprised to see Gimp struggling with this task. It seems that the problem only occurs when using PNG-24 that have been compressed already and then using Grav to resize the pictures. And it seems that it is only really visible with faces. So I stick with resizing the images in an external graphics tool and then uploading them to Grav. But I will keep an eye on it throughout my next projects.
@vfor, Normally I always crop, resize and compress images outside of Grav using Gimp. But for a responses masonry with many images and multiple sizes, it felt too much work to do it manually, so I used the ‘derivatives’ function to create a srcset. I didn’t notice any image degradation. Maybe I should have a closer look…
Thanks for the feedback on your experience with PNG-24. Have you tried webp? The latest release candidate of Grav 1.7 has added support for webp.