Preview images generation/rescale problem

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!
D-Cell
Posts: 23
Joined: 17 Dec 2018, 17:47

Preview images generation/rescale problem

Post by D-Cell » 27 Oct 2019, 20:01

Hello, dear Aimeos team!
I installed the fresh version of Aimeos (2019.10) on Laravel 6.2. Everything seems to work well, but the only problem i have is a product preview images rescale.

I would like them to have a different size in my project, so i added next lines to my shop.php:

Code: Select all

'controller' => [
		'common' => [
			'media' => [
				'standard' => [
					'preview' => [
						'maxwidth' => 50,
						'maxheight' => 35,
						'force-size' => false
					],
				],
			],
		],
	],
After that, i run php artisan aimeos:jobs media/scale, clear all the caches, but nothing happens to my preview images, they are still the same.

I also tried to rescale images during upload with:

Code: Select all

'controller' => [
		'common' => [
			'media' => [
				'standard' => [
					[b]'files' [/b]=> [
						'maxwidth' => 50,
						'maxheight' => 35,
						'force-size' => false
					],
				],
			],
		],
	],
My system is Fedora 30 (GD and Imagemagick are installed).

Would be grateful, if you clarify what am i doing wrong?

Thank you!

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

Re: Preview images generation/rescale problem

Post by aimeos » 28 Oct 2019, 08:55

You have to use the new "previews" key: https://github.com/aimeos/aimeos-core/b ... hp#L31-L43

Is there any old documentation we forgot to update?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

D-Cell
Posts: 23
Joined: 17 Dec 2018, 17:47

Re: Preview images generation/rescale problem

Post by D-Cell » 28 Oct 2019, 20:28

aimeos wrote: 28 Oct 2019, 08:55 You have to use the new "previews" key: https://github.com/aimeos/aimeos-core/b ... hp#L31-L43

Is there any old documentation we forgot to update?
Hi! Thank you for reply! The way you provided works perfect. :D

I used this particle to work with thumbnails before - https://aimeos.org/docs/Configuration/C ... mmon/media There are some settings, which didn`t work for me, among others.

Many thanks! Great team and great system!

Post Reply