Hello,
I already had some basic watermarking (putting an image inside another one (PHP-GD imagemerge function) ) in D5 but not I updated it for D6 & imageapi. I implemented this imagecache action as a seperate module.
extra feature:
-watermark image uploading in the action settings
I just required 2 extra things in the imagecache_ui interface:
-file uploading in the action settings forms
-a submit/validation function
Add this inside function imagecache_ui_action_form in the imagecache_ui.module file (only for TESTING!)
//requires extra checking for file element in form
$form['#attributes'] = array('enctype' => "multipart/form-data");
//required for hook_form_submit
$form['#validate'][] = $action['action'] . '_form_submit';
The extra imageapi functions are also in the imagecache_watermark.module file (temporary I hope)
| Comment | File | Size | Author |
|---|---|---|---|
| imagecache_watermark.tar_.gz | 1.62 KB | trogie |
Comments
Comment #1
fizk commentedGreat idea, should be a separate module though.