Hi everyone!
We have several featured posts, and images look somewhat terrible there:
Is there a way to resize images without losing quality?
Just in case, here’s our forum: https://community.elfsight.com/
Thanks!
Hi everyone!
We have several featured posts, and images look somewhat terrible there:
Is there a way to resize images without losing quality?
Just in case, here’s our forum: https://community.elfsight.com/
Thanks!
Is that from the Featured Cards component? If so, maybe @nolo can help?
Yeah that looks like the component. Though it’s based on the Featured Tiles component and I believe with regards to image resizing I didn’t change any code. I also sometimes see blurry previews with the Topic List Thumbnails component. Maybe @david has advice how to optimize images so the previews don’t get blurred?
You need to update the size definitions here:
And then do the maths to update the list of required resolutions here:
Oh… thanks for pointing this out! I let users adjust the sizes in settings:
Looks like I’ll have to think a bit if and how I can integrate this flexibility with the existing definitions
The easiest approach is probably to define the component with the the largest reasonable size in the code (maybe 500x500, plus the 1.5x and 2x variants), and then let the browser resize them down when displaying?
Thanks for the hint David! This seems pretty straightforward for the component. In any case, looks like I’ll need to understand a bit better what the browsers are actually doing, picking a scaled thumbnail and resizing it to the final layout size. As mentioned, I also saw blurry images with the topic list thumbnails and the results are slightly different depending on browser. And it’s probably because I do some size adjustments on my theme code.