× Here you can ask for new features. Please ensure that the requested feature is not implemented already in the latest release.

Hier kommen Feature-Anfragen zu den Erweiterungen rein. Bitte sicherstellen, dass das gew├╝nschte Feature in der aktuellen Version nicht bereits implementiert ist.

SIGE - 2 different watermark (for thumb / big img)

6 years 11 months ago #1299 by effrit
Hi!
First - thanks for great plugin! :)

I think what what will be useful to add different watermark for thumb.
So user may made, for example, rounded corners for thumbs.
or just do not use watermark for thumb but place it on big images

6 years 11 months ago #1302 by Vitja
Hi!

Thank you for your feedback.

You could interchange the two generation functions, so that first the thumbnails are created and then the watermark images. So you would have thumbs without a watermark.

Maybe I integrate this function in the next release.

Have success with the plugin!

Kubik-Rubik Joomla! Extensions

Please support my work with a review in the Joomla! Extensions Directory: extensions.joomla.org/profile/profile/details/61997
6 years 11 months ago #1306 by effrit
i already did some modification by myself :)
(just add watermark for thumb with disabled "watermark" option).
but the main idea is get addition parameter like "thumb_water='corners.png'"
6 years 11 months ago #1309 by Vitja
:-)

I understand what you mean. I'll think about a solution!

Regards

Kubik-Rubik Joomla! Extensions

Please support my work with a review in the Joomla! Extensions Directory: extensions.joomla.org/profile/profile/details/61997
6 years 11 months ago - 6 years 11 months ago #1311 by effrit
ok. thanks anyway )
if it will helpful - short code (works with png-24 alpha, so more useful to make smooth corners or watermark)

$watermarkimage = imagecreatefrompng($mosConfig_absolute_path.'/plugins/content/plugin_sige/watermark.png');
list($width_wm, $height_wm) = getimagesize($mosConfig_absolute_path.'/plugins/content/plugin_sige/watermark.png');
$th = imagecreatetruecolor($width_wm, $height_wm);
imagecopy($th, $thumbimage, 0, 0, 0, 0, $width_wm, $height_wm);
imagecopy($th, $watermarkimage, 0, 0, 0, 0, $width_wm, $height_wm);
imagecopymerge( $thumbimage, $th, 0, 0, 0, 0, $width_wm, $height_wm, 100);
imagedestroy($watermarkimage);
imagedestroy($th);

the result:
6 years 11 months ago #1314 by Vitja
Thank you for the suggest!

Kubik-Rubik Joomla! Extensions

Please support my work with a review in the Joomla! Extensions Directory: extensions.joomla.org/profile/profile/details/61997
Time to create page: 0.120 seconds