Thumbnail too big
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!
Thumbnail too big
Hi,
My shop is working now, regardless of some minor issues, which I'm gonna solve by myself.
But there is one big thing, that annoys me.
When I look at the listview, I can see the thumbnails of the products. Unfortunately, the used images are very big.
I am not sure, if they are original size, but I think so.
So I am wondering, why they are not recalculated to a smaller size, which seems very obvious.
Am I missing a setting or how do I do that?
Uploading smaller images is not an option, because then I have these tiny images in the product details.
Regards
Christian
My shop is working now, regardless of some minor issues, which I'm gonna solve by myself.
But there is one big thing, that annoys me.
When I look at the listview, I can see the thumbnails of the products. Unfortunately, the used images are very big.
I am not sure, if they are original size, but I think so.
So I am wondering, why they are not recalculated to a smaller size, which seems very obvious.
Am I missing a setting or how do I do that?
Uploading smaller images is not an option, because then I have these tiny images in the product details.
Regards
Christian
Re: Thumbnail too big
You can scale the images on upload if you configure their maximum height and/or width. You would want this especially for the preview images:
https://aimeos.org/docs/Configuration/C ... mmon/media
You can rescale existing images after modifying the configuration by running the "Rescale images" job from the Aimeos scheduler task
https://aimeos.org/docs/Configuration/C ... mmon/media
You can rescale existing images after modifying the configuration by running the "Rescale images" job from the Aimeos scheduler task
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: Thumbnail too big
Thank you for your answer,
I have now entered this configuration into setup-TS:
After that, I have uploaded a complete new image for one product.
Cleared Cache in Typo3 and Aimeos.
It still has a big filesize. What may I have done wrong?
I have now entered this configuration into setup-TS:
Code: Select all
plugin.tx_aimeos.settings {
controller.common.media.standard.files.maxwidth = 800
controller.common.media.standard.preview.maxwidth = 240
}
Cleared Cache in Typo3 and Aimeos.
It still has a big filesize. What may I have done wrong?
Re: Thumbnail too big
In TYPO3, configuration for frontend, backend and scheduler tasks have a different prefix resp. has to be added directly in the TS-Config field of the scheduler task.
Scale images in the admin backend:
In the scheduler task for rescaling existing images:
Please also have a look into the docs: https://aimeos.org/docs/TYPO3/Change_configuration
Scale images in the admin backend:
Code: Select all
module.tx_aimeos.settings {
controller.common.media.standard.files.maxwidth = 800
controller.common.media.standard.preview.maxwidth = 240
}
Code: Select all
controller.common.media.standard.files.maxwidth = 800
controller.common.media.standard.preview.maxwidth = 240
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: Thumbnail too big
Great, thank you
that did the trick for both, new images and existing ones (with the scheduler).
that did the trick for both, new images and existing ones (with the scheduler).
Re: Thumbnail too big
I created the rescale image scheduled task and added the config
to the TypoScript configuration field, but after running the task (which takes a few seconds, so it seems to be doing something) the images are still 240px width.
Is there anything else I need to do?
Code: Select all
controller.common.media.standard.preview.maxwidth = 350
Is there anything else I need to do?
Re: Thumbnail too big
Depending on your used Aimeos version, the configuration has changed in 2019 due to support for responsive images:
https://github.com/aimeos/aimeos-core/b ... hp#L31-L43
Now use:
for three responsive preview image sizes.
https://github.com/aimeos/aimeos-core/b ... hp#L31-L43
Now use:
Code: Select all
controller.common.media.standard.previews {
0 = {
maxwidth = 350
}
1 = {
maxwidth = 750
}
2 = {
maxwidth = 1050
}
}
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: Thumbnail too big
I haven't success with this. Cleared all the caches but this isn't working for me.
Is the thumbnail in the basket generated this way as well?
Is the thumbnail in the basket generated this way as well?
- Attachments
-
- scheduler.JPG (75.49 KiB) Viewed 3723 times
Re: Thumbnail too big
The configuration options have been shortened in Aimeos 2021.x, so the "standard" part has been removed:
Code: Select all
controller.common.media.previews.0.maxwidth = 700
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