Imaging and casting
Right after an injury, the imaging question is whether you need a picture at all. When does a foot injury need an X-ray? is the question to open first.
The questions, in the order they come up
If an X-ray leads to a cast or a boot, the next question is how long you will wear a walking boot.

If the answer is a scan instead, read how to prepare for a leg or ankle MRI before the appointment, not in the waiting room.
Why MRI pictures of soft tissue are often clearer
RadiologyInfo.org (RSNA and ACR) states that MR images of the soft-tissue structures of the body, particularly muscles, bones and joints, are often clearer and more detailed than with other imaging methods.
Deciding on a picture or preparing for one
Choose by whether you are still deciding about a picture or already have one booked. To decide, open the X-ray question. With a scan booked, open the MRI question.
MedlinePlus has a leg MRI scan entry, and RadiologyInfo.org describes musculoskeletal ultrasound for readers comparing scan types.
Injuries that lead to imaging in the first place are grouped under sports foot injuries.