Scale Image

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!
jramirezgranada
Posts: 40
Joined: 12 Jul 2018, 19:57

Scale Image

Post by jramirezgranada » 07 Nov 2018, 18:20

Hi there;

I'm extending namespace Aimeos\Controller\Common\Media\Standard controller to add more images like a thumbnail using the original image.

The process is working good, but the new image is't good, it doesn't have a good proportion and it's pixeled.

Look the original image,
2018.11.07_13.16.30_shot.png
2018.11.07_13.16.30_shot.png (10.13 KiB) Viewed 1141 times
And the scaled image
2018.11.07_13.18.47_shot.png
2018.11.07_13.18.47_shot.png (7.91 KiB) Viewed 1141 times
is there a way to keep the resolution,

This is my configuration

Code: Select all

'common' => [
        'media' => [
            'name' => 'MyStandard',
            'standard' => [
                'thumbnail' => [
                    'maxwidth' => 60,
                    'maxheight' => 78
                ],
                'small_image' => [
                    'maxwidth' => 80,
                    'maxheight' => 104
                ],
                'options' => [
                    'image' => [
                        'name' => 'Imagick',
                        'quality' => 100
                    ]
                ]
            ]
        ]
    ]
Thanks
--
Jorge A Ramirez
System Engineer
PHP Developer

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

Re: Scale Image

Post by aimeos » 08 Jul 2019, 11:05

The new Aimeos 2019.07 now contains code to generate responsive images automatically (sizes are configurable)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply