Watermark on previews

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Stefanki
Posts: 7
Joined: 02 Feb 2022, 16:12

Watermark on previews

Post by Stefanki » 01 Oct 2023, 00:36

Hello,
I would like to use the watermark method from /MW/Media/Image/Imagick.php, when using "php aimeos:jobs media/scale" to make previews, but i cannot assign the right values to $options['image']['watermark'] here,
https://github.com/aimeos/aimeos-core/b ... 63C6-L63C6

Code: Select all

if( isset( $options['image']['watermark'] ) && self::$wmpath !== $options['image']['watermark'] )
{
        self::$wmimg = new \Imagick( realpath( $options['image']['watermark'] ) );
        self::$wmpath = $options['image']['watermark'];
        self::$wmimages = [];
}
What is the recommended way to do this ?

Thank you in advance for your attention

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

Re: Watermark on previews

Post by aimeos » 02 Oct 2023, 13:02

You must use an absolute path to the watermark image to get this to work.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply