Im trying to overlay one image over another using dynamic changing position ( X and Y offsets) and can't figure out how... Should I use GD directly ?

It seems to be great missing feature so I also created #325103: Custom action support - first step to dynamic actions

Comments

crea’s picture

Hmmmm...Perhaps its easier to just get original action file from Imagecache Actions and patch it a bit

crea’s picture

Status: Active » Fixed

It is easy. Just use #325103: Custom action support - first step to dynamic actions and original code from imagecache actions module:

// Calculate $x, $y, $alpha
$overlay = imageapi_image_open('path_to_file.gif'); 
return imageapi_image_overlay($customaction_image, $overlay, $x, $y, $alpha );
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.