Distorting a layer to fit shape
I have a rectangular image which I'd like to distort so that it fits into a shape. I can almost do it using "Distort", but I need to move more than just the corners, which is all I can seem to do using distort. The midpoints just scale along that direction.
This is approximatly what I want to achieve:
There'd probably be more distortion, but I painted this by hand... I can use either Photoshop or Illustrator, if either one is more suited.
This is easily achieved in Illustrator using Envelope Distort:
Draw your pattern/shape/whatever to be warped
Draw the shape to guide the warping
Select both object (with guide shape on top) and use
Make With Top Object(keyboard shortcut Alt + Ctrl + C)
The default options may make the edges too smooth for your taste. Check
Envelope Distort ⇒
Envelope Options. Higher fidelity = sharper corners.
You can do a lot o' cool stuff with Envelope Distort...