I'm using Drupal 7 and I'm trying to create an image style, which resizes and crops an image and adds another image as the background. The latter image is the canvas for this image style. I am using the Imagecache module and so far I tried either adding the canvas image as "Underlay (background)" or as "Overlay (watermark)", but with either of these selections the problem is that the background image and the front image are positioned at x:0, y:0, and the result is not what I want, meaning both image are on top of the other.

Is there a way to define an offset for the image I want to be inside the canvas image? Otherwise, is there another way of doing this?

Please let me know if I didn't express my question clearly.

Thank you!

  • Which version of Drupal are you using ?
    – Anil Sagar
    Commented Oct 30, 2012 at 11:25
  • Yeah, sorry for that, I'm using Drupal 7 Commented Oct 30, 2012 at 11:35

1 Answer 1


I assume you are using imagecache_actions module. I enabled imagecache_canvasactions module too that comes with imagecache_actions module.

Once i enable above mentioned modules, i can able to see offset for X & Y while adding Underlay (Background Effect) . See screenshot below. I set offsets to 50 & 40 see the style in action in second image.

enter image description here

enter image description here

  • Thanks for your reply. My bad, I thought the offset was related to the background image and not the one in the front. Thank you :) Commented Oct 30, 2012 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.