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!
rowild

Responsive Images

Post by rowild » 21 Jan 2021, 14:50

Is it possible to assign different image resizing settings to different image types (e.g. stage, lightbox, default)?

So far I found only some documentation about "previews" :
https://aimeos.org/docs/2020.x/config/c ... /#previews

1. What does "preview" mean exactly in this context? Is it a term related to responsive images (haven't heard/read about that ever)? Or does it describe the "domain" in the backend (the area where the images is previews for the respective product)?

I doubt the latter, simply because there are similar named function in the media templates/sections:

Example: "media-standard" partial:

Code: Select all

		<?php foreach( $item->getRefItems( 'media' ) as $item ) : ?>
			<img
				src="<?= $enc->attr( $this->content( $item->getPreview() ) ); ?>"
				title="<?= $enc->attr( $item->getName() ); ?>" <?= $itemattr; ?>
			/>
		<?php endforeach; ?>

2. How and where can I configure scaling formats for other image domains? (TypoScript? ...)

Thank you!

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

Re: Responsive Images

Post by aimeos » 22 Jan 2021, 09:21

rowild wrote: 21 Jan 2021, 14:50 1. What does "preview" mean exactly in this context? Is it a term related to responsive images (haven't heard/read about that ever)? Or does it describe the "domain" in the backend (the area where the images is previews for the respective product)?
"Files" are the original images, "previews" are the generated images from the original file in different sizes.
rowild wrote: 21 Jan 2021, 14:50 Is it possible to assign different image resizing settings to different image types (e.g. stage, lightbox, default)?
2. How and where can I configure scaling formats for other image domains? (TypoScript? ...)
It wasn't possible up to now to define different preview image sizes for different domains and types. This feature has been implemented now and is available if you execute:

Code: Select all

composer req aimeos/aimeos-core:2020.10.x-dev aimeos/ai-admin-jqadm:2020.10.x-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply