Watermark on previews
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Watermark on previews
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
What is the recommended way to do this ?
Thank you in advance for your attention
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 = [];
}
Thank you in advance for your attention
Re: Watermark on previews
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, give us a star
If you like Aimeos, give us a star