Developer forum

Forum » Swift » Scaling of images in the Swift carousel

Scaling of images in the Swift carousel

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hello,

Let me start by admitting that my frontend and image processing skills need polishing up, but here goes.

I'm wondering how I can improve image quality, even in the detail view my images are a bit blurry. For reference I have put a 1920 width rendering of the image from DW next to the original (in paint) scaled down to roughly the same size. Here you can see the original is far more crisp that the rendering:

This picture can be seen on https://mtbmuseum.techteacher.dev/bikes/century

Cheers,

Justin


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

You need to do 2 things.

Change the image component from imageglue to imagemagic. 2 different providers for handling image resizes.

See this: https://doc.dynamicweb.com/forum/development/development/replace-imageglue-with-magicscaler

Also the original is not scaled down - the original 1.6mb vs. 98kb.

You can increase quality on image resize from the default 60 for webp to 90.

BR Nicolai

Votes for this answer: 1
 
Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Thanks, it looks much better now!

 

You must be logged in to post in the forum