Weird image behaviour in product detail

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Weird image behaviour in product detail

Post by aimeos » 08 Jul 2019, 13:24

Your last image has a different aspect ratio (height is smaller than width) and the beginning of the next image is visible. Maybe you can fix that by adding some CSS styles.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Weird image behaviour in product detail

Post by aimeos » 08 Jul 2019, 13:51

Looks like the images are shown bigger than the available space. You can check with the web inspector of your browser.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Weird image behaviour in product detail

Post by aimeos » 12 Jul 2019, 09:38

For each image you upload, three previews are generated by default due to the configuration you've pointed out. Can you post how the <img> tag in your detail page looks like? It must contain a "srcset" attribute for the responsive image sizes.

Regarding the number of images, they should get deleted:
- https://github.com/aimeos/ai-admin-jqad ... d.php#L316
- [url]https://github.com/aimeos/aimeos-c ... d.php#L124[/url]

We will see why this doesn't seem to happen.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Weird image behaviour in product detail

Post by aimeos » 12 Jul 2019, 10:24

The last one is OK and should be shown correctly in the detail view and zoomed. The first one seems to be from a 2019.04 installation where only one preview image has been generated. You can regenerate the preview images if you execute the "media/scale" job controller:

Code: Select all

./artisan aimeos:jobs media/scale
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply