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)

CommentFileSizeAuthor
imagecache_watermark.tar_.gz1.62 KBtrogie

Comments

fizk’s picture

Status: Needs work » Closed (won't fix)

Great idea, should be a separate module though.