You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this is a bug in the PHPThumb library, it doesn't call plugins on save() but on show(), try to get the image as string with getImageAsString() and then save it to the file with file_put_contents()
Hi, a can't use WaterMark plug-in, it somehow does not work, but resize work's fine.
$watermarkPath = 'public/images/water.png';
$watermarkThumb = $this->thumbnailer->create($watermarkPath);
$watermark = $this->thumbnailer->createWatermark($watermarkThumb, [-1,1], 1);
$thumb = $this->thumbnailer->create($imagePath, [], [$watermark]);
$thumb->save('public/images/res.jpg');
What am I doing wrong?
The text was updated successfully, but these errors were encountered: