Product Image Ratio 1:1 not working proberly
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!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Product Image Ratio 1:1 not working proberly
Typo3 Version: 11.5.16
Aimeos Version: 22.7.2
PHP Version: 8.2
---
Hello everyone,
our product images uploaded in fileadmin are in a square format. The --ai-product-image-ratio value under Settings and Theme is set to 1/1. The cron job for rescaling the product images was also run.
If the product search is called up, the images are still in 3/4 format. After clicking on the product, the thumb is then displayed in list view in 1/1 format.
What do I miss to render the images in proper 1:1 ratio?
Thank you in advance.
Aimeos Version: 22.7.2
PHP Version: 8.2
---
Hello everyone,
our product images uploaded in fileadmin are in a square format. The --ai-product-image-ratio value under Settings and Theme is set to 1/1. The cron job for rescaling the product images was also run.
If the product search is called up, the images are still in 3/4 format. After clicking on the product, the thumb is then displayed in list view in 1/1 format.
What do I miss to render the images in proper 1:1 ratio?
Thank you in advance.
Re: Product Image Ratio 1:1 not working proberly
The CSS variable is only for displaying the image but you need to scale/crop the images according to the sizes required for your layout. You can define the sizes the preview images are generated for by overwriting this configuration:
https://github.com/aimeos/aimeos-core/b ... hp#L50-L66
Add the configuration to the Resources/Private/Config/controller.php file of you project-specific Aimeos extension instead of adding it via TypoScript because it needs to be available in the backend and the scheduler.
https://github.com/aimeos/aimeos-core/b ... hp#L50-L66
Add the configuration to the Resources/Private/Config/controller.php file of you project-specific Aimeos extension instead of adding it via TypoScript because it needs to be available in the backend and the scheduler.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Product Image Ratio 1:1 not working proberly
Thank you very much! It works as expected now.
-
- Posts: 48
- Joined: 30 Apr 2023, 12:46
Re: Product Image Ratio 1:1 not working proberly
links not working
Re: Product Image Ratio 1:1 not working proberly
The configuration has been moved to the media manager in 2024+:
https://github.com/aimeos/aimeos-core/b ... hp#L38-L64
https://github.com/aimeos/aimeos-core/b ... hp#L38-L64
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star