Page 1 of 1

Scale Image

Posted: 07 Nov 2018, 18:20
by jramirezgranada
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 1139 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 1139 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

Re: Scale Image

Posted: 08 Jul 2019, 11:05
by aimeos
The new Aimeos 2019.07 now contains code to generate responsive images automatically (sizes are configurable)