Product pictures

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Joseph
Posts: 22
Joined: 28 Sep 2022, 07:47

Product pictures

Post by Joseph » 07 Dec 2022, 10:06

Hello,

when opening the details page of a product, the image is scaled down.
Thus, I am wondering whether it is possible to have the detail page either use the same image as the thumbnail uses which is in a decent size, or if there is some sort of setting for it?

typo3 11.5.10
php 8.12
aimeos 22.10.3
Attachments
Screenshot 2022-12-07 110240.png
Screenshot 2022-12-07 110240.png (24.75 KiB) Viewed 3100 times
NNO.png
NNO.png (53.84 KiB) Viewed 3100 times

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Product pictures

Post by aimeos » 08 Dec 2022, 10:21

Seems like you've configured only very small preview images of 150px. You should configure several sizes which are then used by the browser depending on the viewport size:
https://github.com/aimeos/aimeos-core/b ... hp#L34-L62
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Joseph
Posts: 22
Joined: 28 Sep 2022, 07:47

Re: Product pictures

Post by Joseph » 08 Dec 2022, 15:57

Unfortunately thats not the problem. I have the exact same config.
When uploading a picture its saved as webp and is scaled down.
If I use jpg pictures, they are shown normal.

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Product pictures

Post by aimeos » 09 Dec 2022, 08:02

Are your uploaded images big enough, i.e. have a size of at least 980x1280px?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

TGergo
Posts: 41
Joined: 24 Nov 2022, 14:35

Re: Product pictures

Post by TGergo » 27 Oct 2023, 10:43

On list page with
sizes="(min-width: 260px) 240px, 100vw"
something wrong in Chrome

https://laravel.demo.aimeos.org/shop/best-sellers~2

Chrome browser randomly loads the wrong size of image,

I think it is related to the resolution and the zoom percentage in Windows

3840x2160 225% zoom looks good
2880x1800 150% zoom load a poor quality photo

In my system it should be 480w, but sometimes 240w or 960w
size aimeos image wrong
size aimeos image wrong
sized_aimeos_wrong.jpg (66.25 KiB) Viewed 2418 times

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Product pictures

Post by aimeos » 31 Oct 2023, 10:50

Good question. Problem is that Chrome and all other browsers choose the image variant they want to use themselves. You can only give hints in the "sizes" attribute. Maybe you can test with different values in "sizes" to get better results. If you find a solution, please post it here.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply