This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
How to | Get an Image into Mathematica
There are many convenient ways to get an image into Mathematica, including drag and drop. You can also import images by evaluating commands in a notebook. Once you have an image to work with, you can use any number of Mathematica's image processing functions to analyze and customize it.
This is a selection of examples from the complete "How to" screencast. »
The simplest way to get an image into Mathematica is to use drag and drop. When dropping an image into a notebook, your mouse pointer will change to indicate that content is being copied:
When working with other applications, such as image editors or web browsers, you can copy an image and then paste it into Mathematica with EditPaste:
You can also do the same thing by right-clicking and then selecting Paste from the contextual menu that appears.
From within Mathematica, you can choose InsertPicture From File, and then choose a picture to insert using your operating system's file browser:
If you know the file path of the image on your computer, you can use Import to get the image into Mathematica:
Click for copyable input
If you do not know the file path, you can use InsertFile Path to insert it with your operating system's file browser: