Thumbnail too big

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!
billy678
Posts: 21
Joined: 02 Jun 2022, 15:57

Re: Thumbnail too big

Post by billy678 » 09 Jun 2022, 08:45

I removed it but it doesn't work, sorry.

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

Re: Thumbnail too big

Post by aimeos » 11 Jun 2022, 17:04

aimeos wrote: 08 Jun 2022, 16:05

Code: Select all

controller.common.media.previews.0.maxwidth = 700
This configuration is overwritten by the more specific configuration for product images you can see here:
https://github.com/aimeos/aimeos-core/b ... hp#L46-L62

The correct configuration to overwrite scaled product images is now:

Code: Select all

controller.common.media.product.previews.0.maxwidth = 700
controller.common.media.product.previews.0.maxheight = 700
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

billy678
Posts: 21
Joined: 02 Jun 2022, 15:57

Re: Thumbnail too big

Post by billy678 » 13 Jun 2022, 11:30

So this is my updated config:

Code: Select all

controller.common.media.product.previews {
  0 {
    maxwidth = 500
    maxheight = 500
  }
  1 {
     maxwidth = 700
     maxheight = 700
  }
  2 {
     maxwidth = 900
     maxheight = 900
  }
}
Unfortunately it does not work.

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

Re: Thumbnail too big

Post by aimeos » 15 Jun 2022, 11:56

You can check here if your configuration is used during executing of the media/scale job controller:
https://github.com/aimeos/aimeos-core/b ... #L279-L371
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply