Image background becomes black

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!
MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Image background becomes black

Post by MikaelNazarenko » 30 Nov 2021, 11:45

Hi community!

I faced with strange problem. When I attach image to product and save product - png image with transparent background gets black background... We use last aimeos version. It happens on remote server. On my local dev ubuntu machine it works fine.

What could be the problem.. ? Does it depend on some php-extensions or ?

I have attached image. You can see, before upload it was with transparent background and after it got black.

Thanks for any ideas !
Attachments
166663af_Kraftpilze-Energie-Mockup.png
166663af_Kraftpilze-Energie-Mockup.png (237.34 KiB) Viewed 974 times
6ef68860_Kraftpilze-Energie-Mockup.png
6ef68860_Kraftpilze-Energie-Mockup.png (38.04 KiB) Viewed 974 times

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: Image background becomes black

Post by MikaelNazarenko » 30 Nov 2021, 11:50

I just tried to add to the config/shop.php

Code: Select all

        'controller' => [
            'common' => [
                'media' => [
                    'standard' => [
                        'options' => [
                            'image' => [
                                'name' => 'Imagick',
                                'quality' => 75,
                            ]
                        ]
                    ]
                ]
            ]
        ],
Does not help ((

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: Image background becomes black

Post by MikaelNazarenko » 30 Nov 2021, 12:58

I think because of imagick not installed )

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

Re: Image background becomes black

Post by aimeos » 01 Dec 2021, 11:50

Yes, that's most likely the case. Otherwise, Imagick would have been automatically used.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply