for another Reason I have replaced the ss-imge-Class with something other in my System.
This makes it possible to add a Watermark Image and/or Text to a Image when uploading with Filecenter. Have not checked if this is also with ss_image_Class is possible.
This works with GD2 only.
Installation:
- add this to your ../config/phpwcms/conf.inc.php
Code: Select all
// GD2 Watermark Stuff
$phpwcms["watermark_img"] = "watermark.png"; // Path from root/File for Watermark accepted files
// are GIF, JPG, PNG and PNG alpha
$phpwcms["watermark_pos"] = "TR"; // watermark position withing the image,
// a combination of one or two from 'TBLR': top, bottom, left, right
$phpwcms["img_text"] = 'meinBild'; // creates a text label on the image
$phpwcms["img_text_pos"] = 'BR'; // same as watermark_pos
$phpwcms["img_text_col"] = '#ff0000'; // Text Color
$phpwcms["img_text_trans"] = 50; // transparence 0-100
- download the ZIP, extract and upload the Files to your Server
If you want to recreate all uploaded Imgaes, backup ../content/images
and delete all Image-Files - when next a Image will be loaded it will generated new here with Watermark.
Download -> http://dev.phpwcms-xt.de/download/image_class.zip
ZIP contains:
../watermark.png - Sample Image for Watermark
../include/inc_ext/image_class/ - the new Image-Class
../include/inc_lib/imagick.convert.inc.php
hope it works for you - have fun