Responsive images

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

Responsive images

Post by cnoelker » 09 Aug 2019, 11:43

Hello,
after upgrading to Aimeos 19.7.1, the product detail only shows the preview image, not the full image any more.
Also, the responsive image srcset contains a " 1w" which seems rather odd to me. Display the image only if the width of the browser is 1px?
Additionally, Aimeos now uses "getPreviews()". I am using the XML import. Can I use more than one media.preview inside mediaitem? In the backend, I do not find a way to provide more than one preview, either.
Is this preparation for a future version?
Claudia

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

Re: Responsive images

Post by aimeos » 09 Aug 2019, 11:48

Please run the media rescale job. The 1w in the source sets means that the width is not known and it will be used by the browser in all cases (because the required image is always greater than 1px.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

Re: Responsive images

Post by cnoelker » 10 Aug 2019, 10:01

I rather provide the images scaled already, because the results are better than the aimeos rescale().
Will the import be extended so that I can provide more than one preview image?

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

Re: Responsive images

Post by aimeos » 11 Aug 2019, 12:11

You can import your own preview images if you configure "media.previews" and use aimeos/ai-controller-jobs 2019.07.4:
https://aimeos.org/docs/Developers/Cont ... _CSV#Media
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply