Change appearence size on magnified image in Craft theme

I am working with the Craft theme and when I, from product details page, click on a product image, it get magnified in a popup to cover the entire screen in x-width. My product images is in portrait format, so it means it get around 2 times my screen size and also completely destroyed.

Is there a possibility to have the actual image width (for example 800px on a 800x1200px image) as the max-width? So it show the image bigger, but only if it can, and doesn’t try to expand/magnify a small image and ruin it?

For example, if I only got a 200x600px image for a product and it gets magnified up to 4k sized screen, you can imagine how it would look… But if the site would be sensitive to the images actual size, it doesn’t show it larger than it actually is, 200x600px. It will be small to the customer, but it will not look stupid, at least…

@LitExtension , what do you think? Possible?

With kind regards,

  • Johan.
1 Like

Hi @johstrom ,

Please send your site and if your site is password protected, please send me the password. I will check it.

You can find the site at bok.hstrom.se. Thanks!